随笔分类 - Uni-App
摘要:openMenu: function () { let _this = this; uni.prompt.showContextMenu({ itemList: this.issueList, itemColor: '#727272', success: function (data) { _thi
阅读全文
摘要:renderjs使用renderjs是一个运行在视图层的js。它只支持app-vue和h5。 renderjs 不能使用 uni.$on和 uni.$emit 通信。renderjs的主要作用有2个: 大幅降低逻辑层和视图层的通讯损耗,提供高性能视图交互能力在视图层操作dom,运行for web的j
阅读全文
摘要:场景:用户点外卖要改地址,订单页-->地址选择页-->更改地址-->返回订单页-->地址改变了 【 订单页:】 onUnload(){ uni.$off('selectAddress') //在此生命周期里销毁地址改变事件的监听 } methods:{ changeAddress(){ //点击切换
阅读全文
摘要:搜索 UNI-APP 自定义事件 标签: 自定义事件 uni-app // inner.vue submit(){ this.loading = true var nameList = [] nameList = this.person.filter(item => item.checked tru
阅读全文
摘要:集合:<if test="arr != null and arr.size() > 0"> 数组:<if test="col != null and col .length > 0">
阅读全文