// 防抖
function debounce(func, delay) {
let timer = null;
return function(...args) {
if (timer) clearTimeout(timer);
timer = setTimeout(() => {
func.apply(this, args);
}, delay);
};
}
input防抖
最新推荐文章于 2023-10-24 14:13:41 发布