JavaScript 判断是不是数组

Object.prototype.toString.call(o) == '[object Array]';
posted @ 2020-04-11 14:32  唯爱金生  阅读(159)  评论(0编辑  收藏  举报