jquery 滚动条到底部

$(".pubs_container").on("scroll",function(){
		var nScrollHight = $(this)[0].scrollHeight;
        var nScrollTop = $(this)[0].scrollTop;
        var nDivHight = $(this).height();
        $(".scroH").text(nScrollTop+" "+nDivHight+" "+nScrollHight);
        if(nScrollTop + nDivHight >= nScrollHight){
        	alert("到底了");
        }
	});



你可能感兴趣的:(jquery 滚动条到底部)