function Child() { Parent.call(this); //构造函数继承 } Child.prototype = Object.create(Parent.prototype); // 原型式继承 Child.prototype.constructor = Child; // 寄生试继承