$(".lx").scroll(function(){ var $this =$(this), viewH =$(this).height(),//可见高度 contentH =$(this).get(0).scrollHeight,//内容高度 scrollTop =$(this).scrollTop();//滚动高度 if(scrollTop/(contentH -viewH)>=1){ //到达底部时,加载新内容 处理业务逻辑 } });
jquery监听滚动条
猜你喜欢
转载自1197581932.iteye.com/blog/2412206
今日推荐
周排行