【javascript】class extends super与typescript 继承用法demo
class Person {
constructor(name, age) {
this.name = name;
this.age = age
}
log() {
console.log(`I am ${this.name},age is ${this.age}`);
}
}
class Man extends Person {
const
原创
2020-08-27 15:19:28 ·
270 阅读 ·
0 评论