https://www.zhihu.com/question/31861301 重复加载问题 http://www.jianshu.com/p/12aa901bee1f?from=timeline window.onscroll= function () { var clientHeight=$(window).height(); var scrollTop =$(window).scrollTop(); var offsetHeight=$(document).height(); /*cons…
//滚动条 $(window).scroll(function () { var scrollTop = $(this).scrollTop(); var scrollHeight = $(document).height(); var windowHeight = $(this).height(); var data = $("#n").text(); console.log(data); if (scrollTop + windowHeight…