ECMAScript6的原型
摘要:
class Car { constructor(name){ this.name = name; } getName(){ } } class Ferrari extends Car{ constructor(name){ super(name); } getName(){ } } let car = new... 阅读全文
posted @ 2017-06-08 18:03 沙滩海风 阅读(149) 评论(0) 推荐(0) 编辑