router-link和router-view的区别

2023-01-05 09:34:10
1、router-link:此标签用来实现路由跳转<router-link to='/index'> 2、router-view:路由匹配到的组件将显示到此标签,与router-link配合使用<router-view/>