随笔分类 -  Vue 3.0

摘要:1.定义简单类型数据 用 ref const num = ref(100) 2.定义复杂类型用 reactive const list = reactive(['hhh', 'lll', 'ssss']) 3.防止篡改 添加只读属性readonly return { box, num, list: 阅读全文
posted @ 2022-03-30 09:07 小成- 阅读(216) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示