安卓这样可以判断是否到底部了
$(window).scroll(function () {
var scrollTop = $(this).scrollTop()
var windowHeight = $(this).height()
var scrollHeight = $(document).height()
if((scrollTop+windowHeight)==scrollHeight){
console.log('bottom')
}
}
ios就不行,scrollTop一直为0,windowHeight 也不是视口高度, 求大神解答
试试用这个获取滚动高度
然后判断是否滚动至底部这样来判断