1>全局控制 //向上滑动显示 var initTop = 0; var i = 1; $(window).scroll(function(){ var scrollTop = $(document).scrollTop(); if(scrollTop < initTop){ var top = document.documentElement.scrollTop + document.body.scrollTop; if(top == 0){ i++; showMessage(i,'load…