We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
// 你的答案 <script setup> import { ref } from "vue" const count = ref(0) setInterval(() => { count.value++ }, 1000) </script> <template> <!-- v-once指令会渲染元素一次,然后将其从DOM中删除 --> <span v-once>使它从不更新: {{ count }}</span> </template>