scroll滚动结束事件实现

1 $(window).scroll(function(){
2   clearTimeout($.data(this, 'timer'));
3   $.data(this, 'timer', setTimeout(function() {
4     //滚动结束后执行的代码
5   }, 100));
6 })

 

posted @ 2022-02-09 09:26  枫落曳  阅读(316)  评论(0)    收藏  举报