// 500毫秒执行一次
clearTimeout(that.timeoutId);
that.timeoutId = setTimeout(() => {
that.setData({ isShowSuspend: true });
delete that.timeoutId;
}, 500);
记录一下~
// 500毫秒执行一次
clearTimeout(that.timeoutId);
that.timeoutId = setTimeout(() => {
that.setData({ isShowSuspend: true });
delete that.timeoutId;
}, 500);
记录一下~