vuejs-challenges
vuejs-challenges copied to clipboard
12 - 优化性能的指令
<script setup>
import { ref } from "vue"
const count = ref(0)
setInterval(() => {
count.value++
}, 1000)
</script>
<template>
<span v-once>Make it never change: {{ count }}</span>
</template>