单项选择题在Vue中,哪个选项用于实现跨组件通信()

A.provide
B.props
C.computed
D.methods


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题以下哪个不是父子组件通信的方法()

A.props
B.emits
C.v-model
D.Router

2.单项选择题在Vue中,哪个指令用于将HTML内容渲染为普通文本()

A.v-text
B.v-html
C.v-model
D.v-bind

3.单项选择题在Vue中,哪个指令用于实现条件性展示元素()

A.v-if
B.v-for
C.v-on
D.v-bind

4.单项选择题在Vue中,哪个生命周期钩子用于在组件更新之前执行()

A.onBeforeUpdate
B.onUpdated
C.onBeforeMount
D.onMounted

5.单项选择题在Vue中,哪个指令用于实现循环渲染数组()

A.v-if
B.v-for
C.v-else-if
D.v-else

7.单项选择题在Vue中,哪个生命周期钩子在组件挂载完成后执行()

A.onMounted
B.onBeforeMount
C.onUpdated
D.onBeforeUnmount

8.单项选择题以下哪个不是Vue的计算属性()

A.v-model
B.computed
C.watch
D.methods

9.单项选择题在TypeScript中,哪个特性允许定义函数的参数类型()

A.泛型
B.参数类型注解
C.类型推断
D.接口

10.单项选择题在TypeScript中,哪个关键字用于声明一个接口()

A.class
B.type
C.interface
D.enum