2 回答
海绵宝宝撒
TA贡献1809条经验 获得超8个赞
var AI = function () { this.timeout = null; this.cancel = function () {
clearTimeout(this.timeout); return this;
} this.talk = function () { this.timeout = setTimeout(() => console.log('talk')); return this
}
}var ai = new AI()
ai.talk().cancel()- 2 回答
- 0 关注
- 768 浏览
添加回答
举报
0/150
提交
取消
