1、初始化一个新的vue项目(带vue-router)。
2、在src/router/index.js中写各个路由跳转页面的配置。
3、路由跳转并且带参数(JS)
this.$router.push({
path: "/orderDetails",
name: "orderDetails",
params: {
carNumber: null
}
});
4、在跳转到的页面接受参数的代码
this.$route.params.carNumber
未完,待续...