HTML思考如何能使导航框架中的超级链接当点击时能直接定位到指定页面的特定位置
这个可以 用 html锚点 试试
//事件里写上指定标签id就好 const scrollToLink = ()=>{ document.getElementById('about').scrollIntoView({ block: 'start', behavior: 'smooth' }) }
可以使用锚点,类似于vue的路由跳转