js 判断是否为数组的方法

一般js 里面typeof 数组是object类型,所以不能判断是否为数组,所以用以下方式判断

发布了115 篇原创文章 · 获赞 38 · 访问量 43万+

猜你喜欢

转载自blog.csdn.net/wangweiscsdn/article/details/82729185