滚动优化
var timer=null; window.addEventListener('scroll',function(){ console.log("timer1:",timer) if(timer==null){ timer=setTimeout(function(){ console.log(new Date()) timer=null },300) console.log("timer2:",timer) } console.log("************") },false)
请爱好前端技术的朋友,联系我,有问题大家一起讨论