延迟加载,页面离开的时候清空
this.timer = setTimeout(() => {
this.lazy_display = true
}, 1800)
beforeDestroy() {
clearTimeout(this.timer);
this.timer = null;
},
延迟加载,页面离开的时候清空
this.timer = setTimeout(() => {
this.lazy_display = true
}, 1800)
beforeDestroy() {
clearTimeout(this.timer);
this.timer = null;
},
本文标题:clearTimeout
本文链接:https://www.haomeiwen.com/subject/dmaturtx.html
网友评论