锚点跳转

锚点跳转 

    document.getElementById("task").scrollIntoView();
原文地址:https://www.cnblogs.com/xiaoyaoweb/p/15008473.html