标签:list his code route default lin family 传递参数 nbsp
1、param参数 => /:
2、query参数 => ?
传递参数:
export default new Router({ routes: [ { path: ‘/Product/:id‘, name: ‘Product‘, component: Product } ] }) <router-link :to="`/Product/${item.ID}`" v-for="item in ProductList">{{ item.ProductName }}</router-link>
接收参数:this.$route.params.id
标签:list his code route default lin family 传递参数 nbsp
原文地址:https://www.cnblogs.com/yuyedaocao/p/12025019.html