111117.29

This commit is contained in:
zoujiandong
2025-07-29 15:39:33 +08:00
parent 071ab8de73
commit 4ca1b9cf42
71 changed files with 4259 additions and 652 deletions
+14
View File
@@ -0,0 +1,14 @@
const throttle=function(fn,wait=1000){
var flag = true;
var timer = null;
return function(){
if(flag) {
fn.apply(this,arguments);
flag = false;
timer = setTimeout(() => {
flag = true
},wait)
}
}
}
export default throttle