单次
this.timeout = setTimeout(() => {
_this.queryConvertPercent();
}, 1000)
clearTimeout(this.timeout);
循环
this.timeout= setInterval(() => {
_this.getNewScoopCount();
}, 1000 * 30 * 1);
clearInterval(this.timeout);
单次
this.timeout = setTimeout(() => {
_this.queryConvertPercent();
}, 1000)
clearTimeout(this.timeout);
循环
this.timeout= setInterval(() => {
_this.getNewScoopCount();
}, 1000 * 30 * 1);
clearInterval(this.timeout);