js原型
有如如下代码:class Person { constructor(name) { this.name = name } hello() { console.log('hello') } } class Student extends Person { constructor(name, score) { super(name) this.score = score } introduce() { console.log(`我是${this.name},考了${this.score}分。`) } } const...
最近评论