Student.prototype = Object.create(Person.prototype); Student.prototype.constructor = Person
视频里是 Student.prototype.constructor = Person; 而笔记里是Student.prototype.constructor = Student; ,到底是哪个呢?
视频里是 Student.prototype.constructor = Person; 而笔记里是Student.prototype.constructor = Student; ,到底是哪个呢?
2016-04-17
举报