input 事件回调
$.throttle(1000,function(){
console.log('test');
})
正常 1s中打印一次 test
$.throttle(1000,function(){
console.log('test');
$.ajax();
})
每次输入都触发, 节流的作用就失效了
这是什么原理 ?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
光阴似箭催人老,日月如移越少年。