$(document).scroll(function(){ var dHeight = $(document).height(); var wHeight = $(window).height(); var scrollTop = $(document).scrollTop(); if( dHeight-wHeight <= scrollTop){ alert("到底了"); } })
is good!
原文:http://www.cnblogs.com/leisir/p/4456346.html