使用JSZip创建、读取和修改Zip文件
// 创建一个Zip实例 var zip = new JSZip(); // 向Zip中添加文件 zip.file(hello.txt, Hello World-n); zip.file(foo/bar.txt, Bar-n); // 将Zip ...
How to use JSZip
An instance of JSZip represents a set of files. You can add them, remove them, modify them. You can also import an existing zip file or generate one. How to read a file · Write a file · Limitations of JSZip · Get a file with an ajax ca
file(name, data [,options])
Create .zip files using JavaScript. Provides a simple API to place any content generated by JavaScript into a .zip file for your users.