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