2019年9月1日
摘要: 一、typeof判断数据类型 由上图可知,数组类型Array,对象类型Object,null类型都返回了Object,所以应该细分。 二、instanceof判断某个引用是否属于某一个实例 三、constructor判断数据类型 constructo可以判断多种类型,在使用typeof时判断数组、对 阅读全文
posted @ 2019-09-01 14:59 lia二娃 阅读(246) 评论(0) 推荐(0)