摘要: 基本概念 防抖 节流 在频繁的触发事件时,并在一定时间内没有触发事件,事件函数才会调用一次 在频繁的触发事件时,保证在一定时内调用一次事件函数 实现 防抖 function dbbounce(fn, await = 1000) { let timerId = null let context = t 阅读全文
posted @ 2021-08-01 21:27 攻城Alone 阅读(48) 评论(0) 推荐(0)