<!-- --> <!-- 1.引入vue-router --> // 2.Vue.use(VueRouter);可省略 Vue.use(VueRouter); varFirst = { template : ` thisis first view `, } varSecond = { template : ` thisis second view