JavaScript 判断是不是数组

Object.prototype.toString.call(o) == '[object Array]';

猜你喜欢

转载自www.cnblogs.com/dreamsails/p/12679505.html
今日推荐