JQuery-点击回到页面顶部
JQuery--点击返回页面顶部function goTop() {$(html, body).animate({scrollTop:0}, slow) }?$(html
JQuery--点击返回页面顶部
function goTop() {$('html, body').animate({scrollTop:0}, 'slow'); }?
$("html,body").animate({scrollTop: $("#位置").offset().top}, 'slow');
scrollTop:标识要滚动到高度,由#位置来决定