如果使用函数怎么实现???
class ReduceNumber{ constructor(init = 0){ this.init = init } add(m){ this.init += m return this } minus(n){ this.init -= n return this } }
标签:功能,return,实现,init,add,constructor,minus From: https://www.cnblogs.com/zhenjianyu/p/17088884.html