$(function(){ //当点击跳转链接后,回到页面顶部位��? $("#gotop").click(function(){ $('body,html').animate({scrolltop:0},400); return false; }); });