vue使用锚点跳转
2019-08-27 本文已影响0人
众生皆似尘埃啊
<router-link
class="child_two"
to="/#material_flow"
tag="li"
>金融</router-link>
// “to="/#material_flow"”代表跳向首页中id名为material_flow的位置
document.documentElement.scrollTop = document.documentElement.scrollHeight;
document.body.scrollTop = document.documentElement.scrollHeight;
//跳到浏览器底部