判断变量是否是数组

Array.isArray(arr)

Array.prototype.isPrototypeOf(arr)

arr.constructor==Array

posted @ 2018-07-02 14:52  花开半夏shen  阅读(179)  评论(0)    收藏  举报