颜娘娘的碎碎念

关注

vue 中的 ref 简单总结

颜娘娘的碎碎念

关注

阅读 143

2022-03-11

<template>  
    <Student ref="studentEl"></Student>
</template>


<script>
    const studentByRef = this.$refs.studentEl;
    studentByRef.showStudentName()
</script>

student 组件

 App 组件

vue官网ref介绍

相关推荐

hoohack

Vue 中的 Ref

hoohack 144 0 0

闲鱼不咸_99f1

vue 中的 mixin 简单总结

闲鱼不咸_99f1 94 0 0

爱做梦的老巫婆

vue 中的 props 简单总结

爱做梦的老巫婆 67 0 0

Spinach菠菜

vue3中获取ref元素的几种方式总结

Spinach菠菜 104 0 0

天蓝Sea

vue中ref属性

天蓝Sea 197 0 0

年迈的代码机器

Vue中的ref与reactive

年迈的代码机器 22 0 0

滚过红尘说红尘

vue中的Reactive,ref,readonly

滚过红尘说红尘 116 0 0

西特张

vue中的 ref 和 $refs

西特张 112 0 0

路西法阁下

Vue3中的reactive,shallowReactive,ref,shallowRef;readonly,shallowReadonly; toRaw,markRaw简单介绍

路西法阁下 75 0 0

mm_tang

Vue3中ref和toRef的区别

mm_tang 153 0 0

精彩评论(0)

0 0 举报