摘要: ES5声明一个类 let Animal = function (type) { this.type = type } Animal.prototype.eat = function () { console.log('eat') } ES6声明一个类 class Animal { // 构造函数 c 阅读全文
posted @ 2020-04-20 22:32 AllenZhang_(*^▽^*) 阅读(95) 评论(0) 推荐(0) 编辑