摘要: class关键字创建 在class中使用extends关键字实现继承 语法:class子类extends父类{ } //父类 可以看作其他子类共有的属性,也可以看作是构造函数中的 原型对象 class Person{ constructor(name,age){ this.name=name thi 阅读全文
posted @ 2019-11-29 16:02 奔走的松鼠 阅读(338) 评论(0) 推荐(0) 编辑