BottomJumpPage: function () {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
if (scrollTop + windowHeight == scrollHeight) { //滚动到底部执行事件
console.dir("我到底部了"); }
if (scrollTop == 0) { //滚动到头部部执行事件
console.dir("我到头部了"); }
}
$(window).scroll(BottomJumpPage);