我有一个 js,其内容如下所示:
HTTP/1.1 200 OK
Date: Fri, 02 Dec 2011 03:40:37 GMT
Server: Apache/2.2.3 (CentOS)
Vary: Accept-Encoding
Last-Modified: Fri, 12 Jun 2011 02:36:40 GMT
ETag: "7812e-1228-4a5df9820de00"
Accept-Ranges: bytes
Content-Type: application/x-javascript
Content-Encoding: gzip
Content-Length: 2009
然后是一堵墙:
00000000: 5e 01 00 00 02 08 00 00 e0 ff d2 d4 36 12 2e 00 ^...........6...
既然提到了gzip
,我假设这是一个压缩的javascript文件?
或者这是某种加密?
最佳答案
gzip -cd
数据应该足以解压缩它。
使用的压缩与 zlib
相同如果您需要 API 来解压缩您的数据。
关于javascript - 有没有办法解压javascript文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8440856/