摘要: ​ 1、watch 在 Vue3 中的组合式 API 中,watch 的作用和 Vue2 中的 watch 作用是一样的,他们都是用来监听响应式状态发生变化的,当响应式状态发生变化时,都会触发一个回调函数。 const message = ref("test"); watch(message, (n 阅读全文
posted @ 2023-08-21 16:31 wang33772 阅读(55) 评论(0) 推荐(0)