我想检测我是否在页面底部。这适用于任何浏览器 - 但不适用于 iPhone。
if ($(window).scrollTop() == ($(document).height() - $(window).height())){
alert('on bottom');
}
我做错了什么?
我想检测我是否在页面底部。这适用于任何浏览器 - 但不适用于 iPhone。
if ($(window).scrollTop() == ($(document).height() - $(window).height())){
alert('on bottom');
}
我做错了什么?