摘要: avascript中有六种数据类型:string;boolean;Array;Object;null;undefined。如何检测这些数据类型呢,总结方法如下: 方法一:采用typeof 通过上面的检测我们发现typeof检测的Array和Object的返回类型都是Object,因此用typeof是 阅读全文
posted @ 2019-10-23 10:21 Jinsuo 阅读(212) 评论(0) 推荐(0) 编辑