1、定义组件(2.0版本使用router-link作为路由标签,渲染为)importVueRouterfrom'vue-router';Vue.use(VueRouter);----------------------------------------------------

1、定义组件(2.0版本使用router-link作为路由标签,渲染为)importVueRouterfrom'vue-router';Vue.use(VueRouter);----------------------------------------------------