摘要: 防抖( debounce ) debounce(func,delay){ let timer = null; return function(...args){ if(timer) clearTimeout(timer) timer = setTimeout( () => { func.apply( 阅读全文
posted @ 2020-05-10 23:25 lethe666 阅读(185) 评论(0) 推荐(0)