/* 锚点跳转 */
function anchor(p,fn) {
    $("html,body").animate({ scrollTop: $("#" + p + "").offset().top }, 1000,fn);
}

相关文章: