摘要: 函数防抖:短时间多次触发同一事件,只执行 最开始 或 最后 一次操作。 function debounce(func, ms = 1000) { let timer; return function(...args) { console.log(args); if (timer) { clearTi 阅读全文
posted @ 2022-05-07 16:26 し7709 阅读(323) 评论(0) 推荐(0) 编辑