//继承 function inherits(ctor,superCtor){ ctor.super_ = superCtor; ctor.prototype = Object.create(superCtor.prototype,{ constructor : { value : ctor, emumerable : false, writable : true, configurable : true } }) }; var Person = function(name){ this.nam…