移动端或PC端滑动到底部弹出新页面的功能

326 阅读1分钟
$(window).scroll(function() {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
if (scrollTop + windowHeight == scrollHeight) {
$("footer").trigger('click');
}
});

footer标签名