JQuery - 点击,滚动回到顶部 / 底部刷新回到顶部

    if ($(document).scrollTop() != 0) {
        //刷新之后,回到顶部
        $('body,html').animate({ scrollTop: 0 }, 500);
    }

  

posted on 2015-09-04 17:04  ultrastrong  阅读(491)  评论(0编辑  收藏  举报