Discuss / JavaScript / 调用new cat的时候,他找不到你定义的构建函数回去找父类的构建函数

调用new cat的时候,他找不到你定义的构建函数回去找父类的构建函数

Topic source

class Cat extends Animal {

say() {

return `Hello, ${this.name}!`

}

}


  • 1

Reply