设置:在router目录下的index.js文件中,对path属性加上/:id

获取:使用router对象的params.id

posted on 2019-10-22 22:02  小菟同学  阅读(8253)  评论(0编辑  收藏  举报

……