jQuery實(shí)現(xiàn)滑動(dòng)返回頁(yè)面頂部,具體代碼如下:
// Back To Top
$(document).ready(function(){
$('.top').click(function() {
$(document).scrollTo(0,500);
});
});
//Create a link defined with the class .top
<a href="#" class="top">Back To Top</a>
更多信息請(qǐng)查看IT技術(shù)專(zhuān)欄