+
+
+
{{ $route.params.id }}
// 渲染id
+
+
+```
+
+后端打印
+```
+
+```
+
+### 404 Not Found Rount
+
+添加path地址为`*`的路由。
+
+```
+// 路由配置
+let router = new VueRouter({
+ mode:"history",
+ routes:[
+ {
+ path:"*", // *为通配符
+ component:Vue文件地址
+ }
+ ]
+})
+```
+
+## 嵌套路由
+
+```
+let router = new VueRouter({
+ mode:"history",
+ routes:[
+ {
+ path:"/show",
+ component:主Vue文件,
+ children:[
+ {
+ path:"newshow", // 这里前面不需要`/`
+ component:嵌入Vue子文件
+ },
+ ]
+ }
+ ]
+})
+```
+
+注意:需要嵌套路由需要在Vue主文件添加 `