摘要:复杂data的处理方式 认识计算属性computed 案例实现思路 实现思路一:模板语法 实现思路二:method实现 思路三的实现:computed实现 计算属性 vs methods 计算属性的缓存 计算属性的setter和getter 源码如何对setter和getter处理 01_三个案例的
阅读全文
摘要:云函数的使用 index.vue <template> <view class="content"> <!-- <image class="logo" src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-62ae62c5-9a74-4911-a81a-e606
阅读全文
摘要:<template> <view> <!-- 条件编译 --> <!-- 编译到H5端 --> <!-- #ifdef H5 --> <btn></btn> <!-- #endif --> <!-- 编译到H5端、app端 --> <!-- #ifdef H5 || APP-PLUS --> <bt
阅读全文
摘要:index.vue <template> <view> <btn color="red" background-color="skyblue" @change="change">点击我啊</btn> </view> </template> <script> // 是@/,不要漏了斜杠/ import
阅读全文
摘要:uni-app核心知识概览 index.vue <template> <view> <!-- 数据绑定 --> <view class="text-area"> <text class="title">{{title}}</text> </view> <!-- 事件处理 --> <view clas
阅读全文