得到的字符串有 140KB ,这里被压缩过了,想解压出来,有什么方法或者提示?目前对这些不熟悉,不知道该查什么?请赐教
1
gamexg 2016-02-15 17:05:36 +08:00 1
什么都没说...
什么压缩格式? google javascript zip 直接就能找到相关的库。 感觉更好的方案是使用 content-encoding:gzip , web 服务器压缩,浏览器解压,对 js 完全透明。 |
2
chemzqm 2016-02-15 17:22:34 +08:00 1
uglifyjs 有个 --beautify 选项干这事,只是格式化而已,原来的变量名改不回来了
|
4
chemzqm 2016-02-15 19:51:11 +08:00 1
@aitaii gzip 解压缩按道理应该浏览器帮你做了, 如果是图片 base64 可以直接丢 img 的 src
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." 需要浏览器支持 datauri 你也可以解析成 Uint8Array 获取完整 2 进制信息,参考 https://github.com/laruiss/base64binary/blob/master/base64binary.js |
5
libook 2016-02-15 19:57:51 +08:00 1
是 gzip 技术吗?如果是的话是对开发者透明的,你只需要将 HTTP 服务器设置打开 gzip 压缩, HTTP 服务器就会检测浏览器发来的 Request 头中是否包含 Accept-Encoding:gzip 这样的压缩格式声明,没有的话 HTTP 服务器就提供未压缩的数据,有的话就自动压缩,浏览器会根据 Request 头中的设置自动使用解压算法解压,你在页面上拿到的数据就已经是解压后的了,不需要自己再解压了。
当然,很可能你问的不是这个。。。 |
8
aitaii OP ```
eJy0vemOXVW2JvoE9Q5WWvUvcM2+uTqVErbBIRMggrDkcPzZulLdK50f99RV1fl9RZNAGkyXSWdMkyRNdgcw2KQ7wO9y5B3heIsa3+zWnHOvtfdy1rnS2rExmTb+1pxzzNF84xv/9D/++//53/7nr//pv6Tvf/6X//u/n/jXf/5//q///l9/JRg3jAt3gqv/g7FfhX8d/+1jTDzG1EIw+vf4n379T//vv/zr/zzxL4//67/+j//6K7/x/3rin//bf/2VVprzX/16eeWDB3f/bXH6PD3/acE544zRlzmlrGHeLqQ/5ehv4c1CL9iCnVSesVPspDbSulNsSyqr2SlxUv77b17aenD7Y/rjjr94c0sc3f3T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