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

PHP中文网
PHP中文网

认证0级讲师

membalas semua(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)) 
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan