$('html, body').animate({scrollTop: $(document).height()}, 50);

滚动到底部的JavaScript实现
这段代码使用jQuery库,实现了浏览器窗口平滑滚动到页面底部的功能,常用于长页面滚动效果。它通过animate方法,设定滚动时间为50毫秒。
$('html, body').animate({scrollTop: $(document).height()}, 50);

671

被折叠的 条评论
为什么被折叠?