摘要: .toString():返回相应值的字符串表现,null和undefined没有这个方法,会报错 String():如果一个值有toString方法,调用该方法,如果是undefind则返回undefine,null则返回null 阅读全文
posted @ 2018-10-18 08:52 学会谦卑博古 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 如图所示,m是Parent构造函数的实例,每个实例都有一个__proto__属性指向构造函数的原型即Parent.prototype Parent.prototype中的constructor会指向构造函数Parent protptype:构造函数的属性,指向构造函数的原型对象 __proto__: 阅读全文
posted @ 2018-10-18 08:29 学会谦卑博古 阅读(133) 评论(0) 推荐(0) 编辑