var bodyHeight = document.body.scrollHeight;不兼容所以浏览器,因此
var bodyHeight=document.body.scrollHeight==0?document.documentElement.scrollHeight:document.body.scrollHeight;
还有var oTop=document.body.scrollTop==0?document.documentElement.scrollTop:document.body.scrollTop;
打赏