废话不说,直接上代码,放心我这个是最好的,直接放到js脚本里,直接生效:
$(window).scroll(function(){ var scrollTop = $(this).scrollTop(); var scrollHeight = $(document).height(); var windowHeight = $(this).height(); if(scrollTop + windowHeight == scrollHeight){ clickMore(); } });
时间: 2024-11-05 19:34:18