摘要:        
let timer = null clearTimeout(timer) timer = setTimeout(()=>{ console.log("防抖") },1000) 防抖:在一定时间内只执行最后一次操作,多用于做输入框搜索 节流:一定时间内执行一次操作,可用于拖拽 function thr    阅读全文
posted @ 2022-12-06 11:29
就这样,
阅读(34)
评论(0)
推荐(0)
        
https://img2020.cnblogs.com/blog/2647068/202112/2647068-20211202145208088-2119837868.png    阅读全文