摘要: 1.在页面中引用watch import {reactive,watch, ref} from 'vue' 2.在setup函数中使用watch监听ref定义的数据 //监听ref所定义的一个数据 newValue改变后新数据,变化前的旧数据 watch(sum,(newValue,oldValue 阅读全文
posted @ 2021-12-13 16:14 初生土豆 阅读(541) 评论(0) 推荐(0) 编辑