如何判断一个js对象是否是Array,

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

posted @ 2020-01-10 15:49  Webwhl  阅读(158)  评论(0)    收藏  举报