1. 引入 import {computed} from 'vue'
2. 使用语法:(1) let comMsg = computed(()=>{})
(2) let comMsg = computed({
get(){}, // 获取计算属性的值
set(){} // 修改计算属性的值
})
03-29
310
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-20
428
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
02-20
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-11
7818
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-02