- // 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>
- //该片段来自于http://www.codesnippet.cn/detail/091220137848.html
来源: http://www.codesnippet.cn/detail/091220137848.html