摘要: watch 使用的方法与vue2大致相同,主要是vue3的写法 <script setup lang="ts"> import { ref, watch } from 'vue' // 简单的侦听一个属性的值 const message = ref() watch(message, (nn) => 阅读全文
posted @ 2023-03-15 17:23 LC蜗牛 阅读(62) 评论(0) 推荐(0)