js 判断是否是数组

var arr = [];

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

posted @ 2015-08-14 15:39  幹掉上帝  阅读(280)  评论(0)    收藏  举报