es6中类的继承

类的继承关键字extends class Person{ constructor(name,age){//构造器 this.name = name; this.age = age; } info(){ return `我的姓名是${this.name},今年${this.age}岁了!`; } } class Chinese extends Person{// constru
相关文章
相关标签/搜索