随笔分类 -  uniapp

摘要:在main.js中添加代码 let onFun = uni.$on; uni.$on = (eventName, obj) => { try { uni.$off(eventName); } catch (error) {} onFun(eventName, obj); } 阅读全文
posted @ 2024-05-08 16:33 西瓜南瓜哈密瓜 阅读(257) 评论(0) 推荐(0) 编辑
摘要:设置image样式为 display: block; 就没有了 阅读全文
posted @ 2023-10-23 13:03 西瓜南瓜哈密瓜 阅读(130) 评论(0) 推荐(0) 编辑
摘要:getPhoto() { let that = this; uni.chooseImage({ count: 1, sizeType: ['compressed'], sourceType: ['album', 'camera'], success: function(res) { // #ifde 阅读全文
posted @ 2022-04-18 10:29 西瓜南瓜哈密瓜 阅读(532) 评论(0) 推荐(0) 编辑

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