目录
1、原型实例继承
- 1、原型实例继承
- 2、原型直接继承
student.prototype = new parentClass(); student.prototype.construct = student;2、原型直接继承
student.prototype = parentClass.prototype; student.prototype.constructor = student;