SOURCE


function Child() {
  Parent.call(this); //构造函数继承
}

Child.prototype = Object.create(Parent.prototype); // 原型式继承
Child.prototype.constructor = Child; // 寄生试继承
console 命令行工具 X clear

                    
>
console