• 图片数据转base64
var base64String = "";
  for (var i = 0; i < image.data.length; i++) {
    base64String += String.fromCharCode(image.data[i]);
  }
Img.src = "data:" + image.format + ";base64," + window.btoa(base64String);