
原理:
scrollTop+clientHeight>=scrollHeight
var scrollTop = document.documentElement.scrollTop,
clientHeight = document.documentElment.clientHeight,
scrollHeight = document.documentElement.scrollHeight;
if(scrollTop+clientHeight>=scrollHeight){
//进行ajax请求
}
网友评论