摘要: ES5 和 ES6 在类和继承的不同,举例如下: ES5 的类和继承: function Person(name){ this.name = name; } Person.prototype.showName = function(){ return this.name; }; var ops = 阅读全文
posted @ 2020-06-10 16:49 PANIC404 阅读(182) 评论(0) 推荐(0) 编辑