摘要:
// fn 是需要节流处理的函数 // wait 是时间间隔 function throttle(fn, wait) { // previous 是上一次执行 fn 的时间 // timer 是定时器 let previous = 0, timer = null // 将 throttle 处理结果当作函数返回 return function (...args) ... 阅读全文
posted @ 2019-06-11 14:39
抱臂柴
阅读(171)
评论(0)
推荐(0)