js判断数据是否为数组类型

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

  

猜你喜欢

转载自www.cnblogs.com/zeyan/p/9028458.html
今日推荐