传统的写法,我们可以在父组件中,通过ref 实例的方式去访问子组件的内容, ... setup>import { ref } from 'vue';const name = ref('Sam')</script>.
確定! 回上一頁