$(document).scroll(function(){
var dHeight = $(document).height();
var wHeight = $(window).height();
var scrollTop = $(document).scrollTop();
if( dHeight-wHeight <= scrollTop){
alert("到底了");
}
})
is good!
$(document).scroll(function(){
var dHeight = $(document).height();
var wHeight = $(window).height();
var scrollTop = $(document).scrollTop();
if( dHeight-wHeight <= scrollTop){
alert("到底了");
}
})
is good!