image.png
prototype:
构造函数有一个prototype属性,指向实例对象的原型对象。
constructor:
原型对象有一个constructor属性,指向该原型对象的构造函数。
proto:
实例对象有一个proto属性,指向该实例对象对应的原型对象。
function Person(){}
function Student(){}
Student.prototype = new Person()
Student.prototype.constructor = Student
https://www.cnblogs.com/xiaohuochai/p/5721552.html
image.png