class Coder {
name(val) {
console.log(val)
return val;
}
skill(val) {
console.log(this.name('wj') + ':' + 'Skill-' + val)
}
// 类内的参数
constructor(a, b) {
this.a = a
this.b = b
}
add() {
return this.a + this.b;
}
}
class htmler extends Coder {
}
let html = new htmler;
console.log(html.name('xiaoming'))