标签:滚动 lis time null func timeout date out false
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)
标签:滚动 lis time null func timeout date out false
原文地址:http://www.cnblogs.com/liuhao-web/p/7262626.html