规模化: 官方 路由 模块: vue-router 路由的参数

可以在任意组件中以 this.$router 获取路由;
this.$route 获取当前路由

F12
> vm.$route
> vm.$route.params
> vm.$router.push('/users/wjl')  //编程式导航

正则表达式匹配:
Vue Router 使用自己的路径匹配语法,其灵感来自于 express,因此它支持许多高级匹配模式,如可选的参数,零或多个 / 一个或多个,甚至自定义的正则匹配规则。
test: {{msg}}

Hello App! using Vue router

Go to Home | Go to About | Go to User | Go to Users/tom | Go to Users/Smith |
Go to /o/125 |