JavaScript/vue.js/子组件的值

来自康健生活
Kangkk​(留言 | 贡献)2020年7月4日 (六) 03:39的版本 (创建页面,内容为“== ref == <syntaxhighlight lang="html5"> <template> <div class="app"> <child ref="msgFormSon" ></child> </div> </template> <script> import child from…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

ref

<template>
    <div class="app">
        <child ref="msgFormSon" ></child>
    </div>
</template>
<script>
import child from './child.vue'
...
this.data=this.$refs["