摘要: 参考 https://www.h5w3.com/14549.html 但是在连续调用 wx.downloadImage 时,发现问题,解决方法详见本博客,忘记在哪写的了,都挨着呢 阅读全文
posted @ 2021-03-26 17:14 王希有 阅读(702) 评论(0) 推荐(0) 编辑
摘要: 参考 https://www.xiejiahe.com/blog/detail/5be97f71df53a14006035e2a 把需要注释的注释掉 同时后端做跨域设置 这个问题困扰比较久 然后,你会发现,在苹果可以显示,在安卓不能正常显示 解决 将下载的pdf 文件,直接放到服务器上 即文章中的方 阅读全文
posted @ 2021-03-26 17:13 王希有 阅读(2797) 评论(0) 推荐(0) 编辑
摘要: wx.chooseImage({ count: 1, // 默认9 sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都 阅读全文
posted @ 2021-03-26 17:09 王希有 阅读(515) 评论(0) 推荐(0) 编辑
摘要: 这篇主要讲到wx.getLocalImagData接口的使用时需要注意的点。 wx.getLocalImgData({localId: '', // 图片的localIDsuccess: function (res) {var localData = res.localData; // localD 阅读全文
posted @ 2021-03-26 17:07 王希有 阅读(1779) 评论(0) 推荐(0) 编辑
摘要: fn 为逻辑的函数wait 为出发间隔时间const debounce = (fn, wait = 1000) => { if (window.timeout) clearTimeout(window.timeout) window.timeout = setTimeout(() => { fn() 阅读全文
posted @ 2021-03-26 16:08 王希有 阅读(1706) 评论(1) 推荐(1) 编辑
摘要: 先说下问题: 第一次使用 map 写法,结合 async await 时,发现在 苹果 和 安卓手机端都只显示最后一张图片,然后就感觉问题出在异步问题上,于是使用 Promise 无图 参考 https://www.h5w3.com/14549.html 第二次使用Promise.all的写法,发现 阅读全文
posted @ 2021-03-26 16:07 王希有 阅读(547) 评论(0) 推荐(0) 编辑