js原型链继承
js 继承 实例是通过构造函数生成的,构造函数本省有一个原型对象,prototype指向构造函数的原型对象,原型对象的constructor又指向构造函数形成环路。function A() {}var B = new A();B.constructor === A // trueB.constructor === A.prototype.constructor // trueB.hasOwnProperty('constructor') // false B是A