我想在javascripte中解压缩zip文件的二进制数据(解压缩)


var url = "http://localhost:9996/api/GetZipFile?id=1-1" ;
$.ajax({
    url: url,
    type: 'GET',
    contentType: 'application/json',
    success: function (result) {
        if (result) {
            // reslut is binary data of zip file 
            // how can read(Decompressing) file and get files from this file
        }
    },
    error: function (jqXHR, textStatus, errorThrown) {
        console.log("Falid2");
    }
});

尝试使用JS ZIP库,这里有一些

  • JSZip
  • 邮编.js

最新更新