三、组合继承(原型继承和借用构造函数继承的组合) function Father(name,age){ this.name=name;this.age=age;console.log(this);} Father.prototype.say=function(){ console.log('hello');} function Child(name,...
不能继承父类方法组合继承&61;原型链继承&43;借用构造函数继承/创建一个父类 function Parent(name){ this.name&61;name|&39;jack&39;this.colors&61;[&39;red&39;39;green&39;39;blue&39;} Parent.prototype....