$(window).scroll(function () { if ($(document).scrollTop() + $(window).height() >= $(document).height()) { alert('开始加载') } });