摘要: debounce(func,delay){ let timer =null; return function(...args){ if(timer) clearTimeout(timer); timer = setTimeout(()=>{ func.apply(this,args) },delay 阅读全文
posted @ 2021-01-20 15:26 银河游鱼 阅读(114) 评论(0) 推荐(0)