标签:配置 pat param outer 页面 new ons pre link
1、
<router-link to="/home">首页</router-link>
2、
this.$router.push({path:‘/content/495‘});
this.$router.push({name:‘news‘,params:{userId:123}})
3、命名式路由 在main.js中配置
const routes={
{path:‘/news‘,component:News,name:‘news‘}
}
this.$router.push({name:‘news‘})
this.$router.push({name:‘news‘,params:{userId:123}})
标签:配置 pat param outer 页面 new ons pre link
原文地址:https://www.cnblogs.com/ju-ruo/p/14876376.html