vuejs-challenges icon indicating copy to clipboard operation
vuejs-challenges copied to clipboard

12 - 优化性能的指令

Open PoliWen opened this issue 2 years ago • 0 comments

<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>

PoliWen avatar Sep 10 '22 02:09 PoliWen