ES5 之前,继续是这样实现的 function Parent() { this.foo = function() { console.log('foo'); }; } Parent.prototype.bar = function() { console.log('bar'); } function Child() { } Child.prototype = p = new Parent(); Child.prototype.constructor = Child; var c = new Child(); c instanceof Par...