Stuk/jszip — Issue #10: Загрузка файла с правильным именем
Author: The28AWG
Created: 2012-01-03 18:49:01+00:00
State: open

``` javascript
var zip = new JSZip();
zip.add("Hello.txt", "Hello World\n");
img = zip.folder("images");
img.add("smile.gif", imgData, {base64: true});
content = zip.generate();
var a = document.createElement("a");
a.innerHTML = "download";
a.href = "data:application/zip;base64,"+content;
//a.download = "foobar.zip";
a.setAttribute("download", "foobar.zip");
document.body.appendChild(a);
```