2017.9.28 锚点链接
 
                            获取当前页面的地址,把#替换成.,然后
    function atop() {
        var $hash = window.location.hash,
            hash = $hash.replace('#', '.');
        if ($hash.length) {
            var po = $(hash).offset().top;            
            $('body,html').stop().animate({
                scrollTop: po - 70
            }, 500, 'easeOutQuint');
        }
    }
相关文章
        
    