有没有办法解压javascript文件?
我有一个 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 文件?
或者这是某种加密?
I have a js where the contents look like this:
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
and then a wall of:
00000000: 5e 01 00 00 02 08 00 00 e0 ff d2 d4 36 12 2e 00 ^...........6...
Since there is mention of gzip
, I assume this is a compressed javascript file?
Or is this some sort of encryption?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
数据上的
gzip -cd
应该足以解压缩它。如果您需要 API,所使用的压缩与
zlib
相同解压缩您的数据。gzip -cd
on the data should be sufficient to decompress it.The compression used is the same as
zlib
in case you want an API to decompress your data.它是一个 gzip 压缩的 javascript 文件。您可以在 Firefox 中使用Firebug 扩展查看它。
It is a gzip compressed javascript file. You may be able to view it using Firebug extension in Firefox.