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

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

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