javascript继承的几种实现方法
1.构造函数继承 (无法继承父类原型链上的属性) function Animal() { this.type = '猫科动物'; } function cat(name, age) { this.name = name; this.age = age; Animal.call(this); //方法一:使用call方法继承 } // cat.pr








