想让锚点根据滚动自动高亮对应锚点节点
不能按照官网样例设置固定死的 getCurrentAnchor
需要设置getContainer
<div id="anchor">
<a-anchor :getContainer="container">
<a-anchor-link href="#域名搜索" title="域名搜索" />
<a-anchor-link href="#网站搜索" title="网站搜索" />
<a-anchor-link href="#IP搜索" title="IP搜索" />
<a-anchor-link href="#责任人搜索" title="责任人搜索" />
</a-anchor>
</div>
<article id="content">
xxxxxxxx
</article>
getContainer(){
return document.querySelector("#content")
}