let zip = new JSZip();
const img = zip.folder(FileName);
const meshes = img.folder('meshes')
img.file(`${fileName}.` + fileType, url, { base64: true });
meshes.file(`mesh.` + fileType, url, { base64: true });
zip.generateAsync({ type: 'blob', compression: 'DEFLATE', compressionOptions: { level: 9 } }).then((content) => {
saveAs(content, `${FileName}.zip`);
});
jszip打包多层文件夹
于 2022-04-14 13:57:05 首次发布