摘要: 在JavaScript里使用typeof判断数据类型,只能区分基本类型,即:number、string、undefined、boolean、object。 对于null、array、function、object来说,使用typeof都会统一返回object字符串。 要想区分对象、数组、函数、单纯使 阅读全文
posted @ 2019-01-19 19:04 aslxwjh 阅读(204) 评论(0) 推荐(0) 编辑