一个是改变属性 一个是生成新对象 (**)
undefined null 不能调用tostring number可以通过包装类调用 var num= 123 num.tostring
把Person.prototype.name = “cherry” 放在最下面也一样 person.name 结果为 “cherry”
一个是改变属性 一个是生成新对象 (**)
undefined null 不能调用tostring number可以通过包装类调用 var num= 123 num.tostring
把Person.prototype.name = “cherry” 放在最下面也一样 person.name 结果为 “cherry”