Vue 页面跳转的几种方法
Vue 应用内跳转
- 使用
router-link
标签
### 不在其他窗口打开
<router-link :to="'/'" >跳转demo</router-link>
### 在其他窗口打开
<router-link :to="'/'" target="_blank">跳转demo</router-link>
跳转到站外链接
- 直接使用
a
标签
### 不在其他窗口打开
<a href="https://blog.tzhhone.cn" >时间胶囊</a>
### 在其他窗口打开
<a href="https://blog.tzhhone.cn" target="_blank">时间胶囊</a>