2025年1月30日

computed

摘要: <template> <div> <h1>{{ firstName }}</h1> <h1>{{ lastName }}</h1> <br> <h2>{{ fullName }}</h2> <!-- <button type="submit" @click="update">修改</button> 阅读全文

posted @ 2025-01-30 15:50 ChoZ 阅读(7) 评论(0) 推荐(0)

toRef,toRefs,toRaw

摘要: <template> <div @click="change"> {{ originObj }} -- {{ reactObj }} {{ toOrigin }} -- {{ toReactRef }} -- {{ toReactRefs }} </div> </template> <script 阅读全文

posted @ 2025-01-30 15:50 ChoZ 阅读(11) 评论(0) 推荐(0)

reactive

摘要: <template> <h1>{{ obj.count }}</h1> <h1>{{ shallowObj }}</h1> <button @click="change">change</button> </template> <script setup lang="ts"> import { re 阅读全文

posted @ 2025-01-30 15:49 ChoZ 阅读(21) 评论(0) 推荐(0)

ref

摘要: <template> <h1 @click="addCount">{{ count }}</h1> <h1 @click="addCountObj">{{ countObj.count }}</h1> <div ref="divRef"></div> </template> <script setu 阅读全文

posted @ 2025-01-30 15:46 ChoZ 阅读(21) 评论(0) 推荐(0)

导航