摘要: class Add { constructor() { this.num = 0; } add(val) { return this.num += val; } } const numAdd = new Add(); numAdd.add(1); // 1 numAdd.add(1); // 2 阅读全文
posted @ 2020-05-11 22:27 莫欺少年穷呐 阅读(739) 评论(0) 推荐(0)