企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
[TOC] ## watchDebounced ``` <template> <div> <label> <input type="text" v-model="source" /> </label> </div> </template> <script setup> import {watchDebounced} from '@vueuse/core'; import {ref} from 'vue'; const source=ref(0); watchDebounced( source, () => { console.log('changed!') }, { debounce: 500, maxWait: 1000 }, ) </script> ```