Javascript 如何使用JSZip解压

Javascript 如何使用JSZip解压,javascript,encoding,zip,compression,Javascript,Encoding,Zip,Compression,我试图将大数据从视图页面发送到控制器,我需要使用一种压缩技术 因此,我选择JSZip压缩数据,我可以压缩数据,但无法使用查看页面中的JSZip解压缩数据(这里压缩的内容将从控制器返回) 我已经看过了,但还没有找到减压的方法 我的压缩代码: var zip = new JSZip(); zip.file("temp.txt", JSON.stringify(buffers[0])); var content = zip.generate({ compression: "DEFLATE" });

我试图将大数据从视图页面发送到控制器,我需要使用一种压缩技术 因此,我选择
JSZip
压缩数据,我可以压缩数据,但无法使用查看页面中的
JSZip
解压缩数据(这里压缩的内容将从控制器返回) 我已经看过了,但还没有找到减压的方法

我的压缩代码:

var zip = new JSZip();
zip.file("temp.txt", JSON.stringify(buffers[0]));
var content = zip.generate({ compression: "DEFLATE" });

// here I'am sending the 'content' to the controller
// and I' am receiving compressed content from controller like 'content' and trying to decompress it.

您可以使用
load()
方法:

load用于创建zip,而不是解压缩。我错了吗?