[jQuery]回到顶部

  

$(document).ready(function() {
    //when the id="top" link is clicked
    $('#top').click(function() {
        //scoll the page back to the top
        $(document).scrollTo(0,500);
    }
});
原文地址:https://www.cnblogs.com/jerry19890622/p/3591160.html