頁面拉到底時自動加載更多

//頁面拉到底時自動加載更多
var page = 1
var next = 1
$( window).scroll(function (event) {
var wScrollY = window.scrollY; // 當前滾動條位置
var wInnerH = window.innerHeight; // 設備窗口的高度(不會變)
var bScrollH = document.body.scrollHeight; // 滾動條總高度
if (wScrollY + wInnerH >= bScrollH) {
 
}
})
相關文章
相關標籤/搜索