test.vue
· 145 B · vue
Неформатований
<script>
import { ref } from 'vue';
const count = ref(0)
<script>
<template>
<button @click="() => count++">{{ count }}</button>
</template>
1 | <script> |
2 | import { ref } from 'vue'; |
3 | |
4 | const count = ref(0) |
5 | <script> |
6 | |
7 | <template> |
8 | <button @click="() => count++">{{ count }}</button> |
9 | </template> |
10 |