如何判断一个对象是否为数组

var arr = [];
console.log(Object.prototype.toString.call(arr));

posted on 2016-02-17 15:32  93回忆录  阅读(102)  评论(0)    收藏  举报

导航