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

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

  

posted @ 2018-05-12 13:21  择言  阅读(2261)  评论(0编辑  收藏  举报