//追加返回顶部按钮 $("body").append('<div id="topIcon"></div>'); $(document).on("click","#topIcon",function(){ &...
//追加返回顶部按钮 $("body").append('<div id="topicon"></div>'); $(document).on("click","#topIcon",function(){ $("html, body").stop(true,false).animate({ scrollTop: 0 }, 500); })