this.timer = setInterval(() => {
that.get_pay_status();
}, 2000);
beforeDestroy() {
clearInterval(this.timer);
this.timer = null;
},
js清除定时器
最新推荐文章于 2024-06-14 14:58:32 发布
this.timer = setInterval(() => {
that.get_pay_status();
}, 2000);
beforeDestroy() {
clearInterval(this.timer);
this.timer = null;
},