摘要: ## 基本使用: 1. 创建一个`VueRouter`对象:`new VueRouter()`。 2. 在`VueRouter`中,需要传递一个`routes`参数。这个参数是一个数组类型,数组中存储的是对象,对象中最少要有两个属性,一个是`path`,代表`url`,第二个是`component` 阅读全文
posted @ 2022-01-16 22:33 空谷近心 阅读(49) 评论(0) 推荐(0)