http://stuk.github.io/jszip/
큰 거래는, 문제는 코드 또는 URL의 안에 자리 잡고 있습니다. URL을 맞춤 설정하고 다른 솔루션으로 전환하기 전에 문제를 일으킬 수있는 다른 코드를 조사합니다. 또한
내가 제공 한 URL에서 파일 이름 문제에 대한 섹션을 읽어
"Filename problems
The biggest issue with JSZip is that the filenames are very awkward, Firefox generates filenames such as a5sZQRsx.zip.part (see bugs 367231 and 532230), and Safari isn't much better with just Unknown. Sadly there is no pure Javascript solution (and working in every browsers) to this. However...
Solution-ish: Downloadify
Downloadify uses a small Flash SWF to download files to a user's computer with a filename that you can choose. Doug Neiner has added the dataType option to allow you to pass a zip for downloading. Follow the Downloadify demo with the following changes:
zip = new JSZip();
zip.add("Hello.", "hello.txt");
Downloadify.create('downloadify',{
...
data: function(){
return zip.generate();
},
...
dataType: 'base64'
});
Other solution-ish: Blob URL
With some recent browsers come a new way to download Blobs (a zip file for example) : blob urls. The download attribute on <a> allows you to give the name of the file. Blob urls start to be widely supported but this attribute is currently only supported in Chrome and Firefox (>= 20). See the example.
var blob = zip.generate({type:"blob"});
myLink.href = window.URL.createObjectURL(blob);
myLink.download = "myFile.zip";"
JSZip 웹 사이트는 모든 브라우저에서 작동하는지 알 수 있지만 IE는 URL 및 일부 콘텐츠가 작동하지 않습니다,하지만 작동 않습니다 원정 여행. 기회는, 당신은 그것이 작동하게하는 방법을 바꿀 수 있습니다. – pickypg
이 데모':)'safari http://htanjo.github.io/jszip-demo/ –
위의 데모에서 Safari가 작동을 멈추었습니다. 나는 JSZip의 작성자가 Blob 다운로드에 대한 지원이 Safari 나 IE에는 존재하지 않는다고 언급 했으므로 여기에있는 답변/코멘트는 구식이라고 생각합니다. – volx757