介绍

只触发一次回调

示例

代码

<script setup lang="ts">
  const handler = () => {
    window.alert('Hello!')
  }
</script>
<template>
  <button v-ononce:click="handler">only alert once</button>
</template>