vue.js中路由的跳转方式

1.在html中使用router-link标签

//使用固定字符串
<router-link to='/about'>about</router-link>

2.在js中通过修改location.href 

location.href = '/about'

 

posted @ 2020-08-28 00:06  求财若渴  阅读(476)  评论(0)    收藏  举报