javascript - 微信小程序开发之临时路径图片转base64编码问题
PHP中文网
PHP中文网 2017-04-11 11:01:31
0
1
2480

PHP中文网
PHP中文网

认证0级讲师

Antworte allen(1)
迷茫
var uploadImage = this.data.imageList[0]
var reader = new FileReader()
reader.onload = function (e) {
      var arrayBuffer = reader.result;
      var base64 = wx.arrayBufferToBase64(arrayBuffer)
}
reader.readAsArrayBuffer(new Blob(this.data.imageList)) 
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage