手把手教你學Vue-3(路由)

1.路由的做用 1.當咱們有多個頁面的時候 ,咱們須要使用路由,將組件(components)映射到路由(routes),而後告訴 vue-router 在哪裏渲染它們。html 簡單的路由 const routes = [ { path: '/foo', component: Foo }, { path: '/bar', component: Bar } ] // 3. 建立 rout
相關文章
相關標籤/搜索