$(".lx").scroll(function(){
			 var $this =$(this),  
	         viewH =$(this).height(),//可见高度  
	         contentH =$(this).get(0).scrollHeight,//内容高度  
	         scrollTop =$(this).scrollTop();//滚动高度  
	        if(scrollTop/(contentH -viewH)>=1){ //到达底部时,加载新内容  
	        	处理业务逻辑
	        	     }  
		});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-27
  • 2022-12-23
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
相关资源
相似解决方案