var bl = window.URL.createObjectURL(xhr.response)
var zip = new JSZip();
zip.file(bl);
zip.generateAsync({type:"blob"})
.then(function(content) {
saveAs(content, "example.zip");
}, function(err){
console.log(err)
})
我的XmlHttpRequest从图像文件得到了一个'blob'类别的响应。我该如何将blob图像文件转换成图片文件(可能是.gif,.jpg,.bmp,.jpg-large等),以便我可以制作没有错误的zip文件?