摘要: 延迟执行 function debounce(wait) { var timer = null; return function (fn) { if (timer !== null) { clearTimeout(timer); } timer = setTimeout(fn, wait); }; 阅读全文
posted @ 2022-10-04 13:13 刺头 阅读(16) 评论(0) 推荐(0) 编辑