单项选择题在Vue Router中,哪个函数用于响应路由参数的变化()

A.watch(route.path)
B.watch(route.query)
C.watch(route.params)
D.watch(route.fullPath)


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题在Vue Router中,哪个属性用于定义路由的路径()

A.path
B.name
C.component
D.redirect

2.单项选择题在Vue Router中,哪个函数用于获取当前路由对象的信息()

A.useRouter()
B.useRoute()
C.useLink()
D.useParams()

3.单项选择题Vue Router中的全局前置守卫是使用哪个方法注册的()

A.router.beforeEach()
B.router.afterEach()
C.router.beforeLeave()
D.router.afterLeave()

4.单项选择题Vue Router支持哪种模式来构建应用()

A.自定义模式
B.仅支持HTML5history模式
C.仅支持hash模式
D.HTML5history模式或hash模式

5.单项选择题以下哪个不是URI的组成部分()

A.协议
B.主机名
C.端口号
D.文件扩展名

6.单项选择题在Spring中,哪个注解用于从请求中获取请求参数()

A.@RequestParam
B.@RequestHeader
C.@RequestBody
D.@PathVariable

7.单项选择题以下哪个不是测试REST API的方法()

A.使用RestTemplate
B.使用Postman客户端工具
C.使用JMeter
D.使用Talend API Tester

8.单项选择题如何在Spring中创建一个具有分页和排序功能的REST端点()

A.使用PageRequest和Pageable
B.使用Pagination和Sorting
C.使用@Pageable注解
D.使用@Sort注解

9.单项选择题在Spring中,哪个接口提供了分页和排序的功能()

A.JpaRepository
B.JpaSpecificationExecutor
C.PagingAndSortingRepository
D.CrudRepository

10.单项选择题以下哪个不是全局CORS配置的一部分()

A.allowedOrigins
B.allowedMethods
C.allowAll
D.exposedHeaders