jQuery实现滑动返回页面顶部,具体代码如下:
// Back To Top
$(document).ready(function(){
$('.top').click(function() {
$(document).scrollTo(0,500);
});
});
//Create a link defined with the class .top
<a href="//www.submisscin.com/wap/#" class="top">Back To Top</a>
更多信息请查看IT技术专栏