1 window.οnscrοll=function(){ 2 var a = document.documentElement.scrollTop==0? document.body.clientHeight : document.documentElement.clientHeight; 3 var b = document.documentElement.scrollTop==0? document.body.scrollTop : document.documentElement.scrollTop; 4 var c = document.documentElement.scrollTop==0? document.body.scrollHeight : document.documentElement.scrollHeight; 5 6 if(a+b==c){ 7 showmore(); 8 } 9 }
转载于:https://www.cnblogs.com/WangShenCode/p/3860836.html