鼠标移入mous(id, index) {
let that=this;
if(that.timeout) clearTimeout(that.timeout);
that.timeout=setTimeout(()=>{
//处理逻辑
},300)
鼠标移入mous(id, index) {
let that=this;
if(that.timeout) clearTimeout(that.timeout);
that.timeout=setTimeout(()=>{
//处理逻辑
},300)
本文标题:节流
本文链接:https://www.haomeiwen.com/subject/qhifahtx.html
网友评论