单项选择题
在Vue Router中,哪个函数用于响应路由参数的变化()
A.watch(route.path)
B.watch(route.query)
C.watch(route.params)
D.watch(route.fullPath)
点击查看答案&解析
相关考题
-
单项选择题
在Vue Router中,哪个属性用于定义路由的路径()
A.path
B.name
C.component
D.redirect -
单项选择题
在Vue Router中,哪个函数用于获取当前路由对象的信息()
A.useRouter()
B.useRoute()
C.useLink()
D.useParams() -
单项选择题
Vue Router中的全局前置守卫是使用哪个方法注册的()
A.router.beforeEach()
B.router.afterEach()
C.router.beforeLeave()
D.router.afterLeave()
