安卓这样可以判断是否到底部了
$(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 也不是视口高度, 求大神解答
芜湖不芜
翻翻过去那场雪
随时随地看视频慕课网APP
相关分类