分享一個jquery在返回頂部在代碼
$("body")
");
var totop=$("#toTop");
totop
click:function(){
$("html
}
mouseover:function(){
$("#toTopTips")
$(this)
}
mouseout:function(){
$("#toTopTips")
$(this)
}
})
$(window)
if($
totop
}
if($(window)
totop
}else{
totop
}
});
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20411.html