JS滚动加载数据的方法Jun 8, 2016 frontend js12345678$(window).scroll(function () { var scrollTop = $(this).scrollTop(); var scrollHeight = $(document).height(); var windowHeight = $(this).height(); if (scrollTop + windowHeight == scrollHeight) { //异步加载数据的方法 }});