摘要: 双等号的类型转换 undefined == null; // true 分析:undefined与null 但不全等( ) 当为number与string时,会将string转换为number; number和boolean时,会将boolean转换为number number或string与Obj 阅读全文
posted @ 2018-12-20 14:20 柳州园几声鸣蝉? 阅读(122) 评论(0) 推荐(0)
摘要: typeOf Array 和null 返回object, instanceof 通过判断该对象的原型链是否指向构造函数的prototype对象 最佳方式: Object.prototype.toString的行为:首先,取得对象的一个内部属性[[Class]],然后依据这个属性,返回一个类似于"[o 阅读全文
posted @ 2018-12-20 11:48 柳州园几声鸣蝉? 阅读(126) 评论(0) 推荐(0)