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 |
最后活跃于
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 |