多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[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> ```