1. ES6之前的继承方式 // 原来的继承 function Amimal(type,name,age,sex){ this.type = type; this.name = name; this.age = age; this.sex = sex; } Amimal.prototype.print = function(){ console.log(`种类:${ this.type}`) console.log(`名字:${ this.name}`) c