node 类中字段和方法名不能一样?
class A {
constructor(){
this.aa = 123;
}
aa() {
console.log(this.aa)
}
}
new A().aa(); // (intermediate value).aa is not a function
node 类中字段和方法名不能一样?
class A {
constructor(){
this.aa = 123;
}
aa() {
console.log(this.aa)
}
}
new A().aa(); // (intermediate value).aa is not a function