CSS skills: 4) goto page head script

        //返回顶部
        $(document).on('click', '.backTop', function (e) {
            $('html, body').animate({scrollTop: 0}, 500);
            return false;
        });    

 

posted @ 2015-05-12 16:30  samu  阅读(110)  评论(0编辑  收藏  举报