he wei
2024-08-22 e95a09669478c2ae9e93517183478e90bad0af36
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script setup name="home1">
import { ref } from "vue";
const count = ref(0);
 
function add() {
  count.value++;
}
 
</script>
 
<template>
<div class="">{{ count }}</div>
<div class="btn" @click="add">add</div>
</template>
 
<style scoped lang="less">
.btn {
  background: #0ff;
  padding: 8px;
  border-radius: 6px;
}
</style>