$(window).scroll(function() {
var scrollTop = $(this).scrollTop();
var docHeight = $(document).height();
var windowHeight = $(this).height();
if(scrollTop + windowHeight == docHeight) {
alert("已經到最底部了!");
}
});
$(window).scroll(function() { } 滾動條在滾動時執行
scrollTop 滾動條距離頂部的距離