在router目录下的index.js文件中,对path属性加上/:id。 使用router对象的params.id。
Vue用来写路由一个插件。 组件:router-link、router-view。