摘要: Array.isArray() 用来检验是不是数组 可以看出 typeof 并不能检验数组,虽然 Array.isArray() 可以检验数组,但是 IE8 都不兼容 这个方法可以兼容IE8 以及以下的浏览器 typeof 这里 null 是基本类型,不是一个对象,这个是 JS 的一个 bug。还有 阅读全文
posted @ 2018-01-26 17:54 大圆圈 阅读(593) 评论(0) 推荐(0) 编辑