复制1class Calc { 2 constructor() { 3 this.count = 0 4 } 5 6 increase() { 7 this.count ++ 8 } 9} 10 11const calc = new Calc() 12new Calc().increase() 13 14console.log(calc.count)
1class Calc { 2 constructor() { 3 this.count = 0 4 } 5 6 increase() { 7 this.count ++ 8 } 9} 10 11const calc = new Calc() 12new Calc().increase() 13 14console.log(calc.count)
本题为“单选题”
题库维护不易,您的支持就是我们最大的动力!