javascript原型链


构造函数的prototype属性指向一个对象,这个对象的constructor属性指向构造函数,proto属性指向对象;
new constructor()生成的对象的proto属性指向constructor的prototype属性。