This article explains Jszip How to pressurize a file ...
Core code:
Private compression (): void{Let zip:jszip = new Jszip (); Let zipcompression = Zip.folder ("Resource/kayer"); Zipcompression.file ("Hello.txt", "Hello World Jszip from aonaufly\n"); Let Content:any = Zip.generate ({type: "blob"}); SaveAs (Content, "Example.zip"); }
The generated zip
650) this.width=650; "title=" 01.png "src=" https://s1.51cto.com/wyfs02/M00/A6/A1/ Wkiol1nwbr6tvy5paabbnscnyes447.png-wh_500x0-wm_3-wmp_4-s_1365460174.png "alt=" Wkiol1nwbr6tvy5paabbnscnyes447.png-wh_50 "/>
Post-pressurization path: Hello.txt:::
650) this.width=650; "title=" 02.png "src=" https://s3.51cto.com/wyfs02/M01/A6/A1/ Wkiol1nwbyuwy8lraaa6xlxr2jk353.png-wh_500x0-wm_3-wmp_4-s_2299028305.png "alt=" Wkiol1nwbyuwy8lraaa6xlxr2jk353.png-wh_50 "/>
Hello.txt The data inside:
650) this.width=650; "Width=" 379 "height=" "title=" 03.png "style=" width:379px;height:140px; "src=" https:// S1.51cto.com/wyfs02/m02/a6/a1/wkiol1nwbdjq4peoaaax0v9oup8459.png-wh_500x0-wm_3-wmp_4-s_3093459870.png "Border=" 0 "vspace=" 0 "hspace=" 0 "alt=" wkiol1nwbdjq4peoaaax0v9oup8459.png-wh_50 "/>
About the path problem, please know the reader advice ...
This article is from the "Better_power_wisdom" blog, make sure to keep this source http://aonaufly.blog.51cto.com/3554853/1970462
Egret's jszip pressure