// container 为有滚动条的容器
let clientHeight = container.clientHeight; //可视区域高度
let scrollTop = container.scrollTop; //滚动条滚动高度
let scrollHeight = container.scrollHeight; //滚动内容高度
if ((clientHeight+scrollTop) == (scrollHeight)) { //滚动到底部 }
转载于:https://my.oschina.net/u/3117745/blog/1511221