摘要: //es6语法export function debounce(func, delay) { let timer //返回一个函数,并拿到参数 return function (...args) { if (timer) { clearTimeout(timer) } timer = setTimeout(() => { func.ap... 阅读全文
posted @ 2018-09-28 16:37 abcByme 阅读(453) 评论(0) 推荐(0) 编辑