摘要:
var bosn = new Student创建了Student的实例bosn。bosn的原型(__proto__)指向构造器Student的prototype属性。 Student.prototype = Object.create(Peroson.prototype)Student.protot 阅读全文
摘要:
有些函数没有prototype属性: function abc(){} var a = abc.bind(null); abc.prototype//undefined 有些对象没有原型: var obj2 = Object.create(null)obj2.__proto__ //undefine 阅读全文