使用场景:
ajax翻页之后,滚动到页面某个位置,提升用户体验;
参数使用请参考,jQuery 效果 - animate() 方法
$("html, body").animate({scrollTop: $(".list_cont").offset().top}, 0);
复制代码
使用场景:
ajax翻页之后,滚动到页面某个位置,提升用户体验;
参数使用请参考,jQuery 效果 - animate() 方法
$("html, body").animate({scrollTop: $(".list_cont").offset().top}, 0);
复制代码