首页 jsJs行为节流

Js行为节流

mc 2021-12-11 11:44:22 0 387
if (this.mc_x86 == undefined) {
    //需要节流方法
    this.doActivateCard();
}
this.mc_x86 = false;
window.clearTimeout(this.timer);
this.timer = setTimeout(res=>{
    this.mc_x86 = undefined;
}
, 1000);

您可能对以下文章感兴趣