2019年11月5日· 浏览 43· 评论 0ES5中类的继承ES5中类的继承实现相对是比较麻烦的 let Animal = function (type) { this.type = type } Animal.prototype.eat = function () { console.log('我要吃') } let Dog = function () { Animal.ca…#ES5#javascript#继承