/ console.log("UL的高度",main.clientHeight);
// console.log("所有的LI的高度",main.scrollHeight);
// console.log("可以滚动的距离",main.scrollHeight - main.clientHeight);
// console.log("main.scrollTop",main.scrollTop);
if (main.scrollTop === main.scrollHeight - main.clientHeight) {
//滚动触底
}
标签:原生,console,log,clientHeight,JS,滚动条,scrollTop,main,scrollHeight
From: https://www.cnblogs.com/Listener-wy/p/17517743.html