Vue路由的一些知識點

總結幾個有關路由的知識點vue $router和$route的關係 $route爲當前router跳轉對象裏面能夠獲取name、path、query、params等vue-router $router爲VueRouter實例,想要導航到不一樣URL,則使用$router.push方法等less <router-link>中的to 和 :to 的區別 to是指直接跳轉頁面 <router-link
相關文章
相關標籤/搜索