介绍
防抖动
示例
代码
<script setup lang="ts">
const handle = () => {
window.alert('I was executed')
}
</script>
<template>
<button v-debounce:click-1000="handle">Quick click on me</button>
</template>
<script setup lang="ts">
const handle = () => {
window.alert('I was executed')
}
</script>
<template>
<button v-debounce:click-1000="handle">Quick click on me</button>
</template>