使用方法 js文件 let $this = this;request({ url:https://www.dounine.com/hello.jpg, method:GET, responseType: arraybuffer, success:function(res){ let base64 = wx.arrayBufferToBase64(res); $this.data.userImageBase64 = data:image/jpg;base64, +
使用方法
wxml文件
PS:小程序本地图片转base64最简单方法
附官方api: |
2019-09-09
2019-06-21
2019-12-14
2021-10-17
2019-06-14