实现 (5).add(3).minus(2) 功能
如果使用函数怎么实现???
class ReduceNumber{
constructor(init = 0){
this.init = init
}
add(m){
this.init += m
return this
}
minus(n){
this.init -= n
return this
}
}
以自己现在的努力程度,还没有资格和别人拼天赋

浙公网安备 33010602011771号