检测浏览器滚动条是否到达底部

$(window).on("scroll",function(){
    var sctop=$(window).scrollTop();
					
  if ($(window).scrollTop() >= $(document).height() -$(window).height()){
	alert("到底了")
  } 
						
})

  

原文地址:https://www.cnblogs.com/qq735675958/p/8341337.html