1.
generated by the anti-shake function is a method for using methods in component A _
Anti-shake function
export const debounce=function(delay,fn){
console.log("debounce")
var timer;
return function(){
var argu=this.arguments;
clearTimeout(timer);
timer=setTimeout(()=>{
fn.apply(this,argu)
},delay)
}
}
there is no great god in depth, please explain, I am not very grateful!