$(document).scroll(function(){
if($(document).scrollTop()>=$(document).height()-$(window).height()){
//滑到底部操作
}
});
//alert($(document).height());获取文档的高度
//alert($(document).scrollTop());获取文档滑动的高度
//alert($(window).height());当前界面可见的高度
原文:http://www.cnblogs.com/laxue/p/6381433.html