JavaScript膨胀实现(可能只有FF 3.6) [英] JavaScript inflate implementation (possibly FF 3.6 only)

查看:183
本文介绍了JavaScript膨胀实现(可能只有FF 3.6)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在FireFox 3.6中编写一些使用HTML 5文件API的脚本。我有一些放气(压缩)文件,我需要膨胀(解压缩)他们。

I'm writing some scripts that are using the HTML 5 file API in FireFox 3.6. I got some deflated (compressed) files, and I need to inflate (uncompress) them.

我发现了一个少数 脚本,但没有一个有测试。所以我有点不愿意使用它们。

I found a few scripts while googling, but none of them have tests. So I'm a bit reluctant to use them.

我的问题是:浏览器可以膨胀。 我能以某种方式通过锻造A XHR请求来搭载通货膨胀吗?或以任何其他方式搭载?记住,脚本目前是FireFox 3.6独家。

My question is: Browsers can inflate. Can I somehow piggyback on the inflation by forging A XHR request? Or piggyback in any other way? Keep in mind, the script is currently FireFox 3.6 exclusive. It can't be an extension, though, I want it to be a regular webpage.

是否有任何脚本?有为其编写的测试?

Alternatively, are there any scripts that you know of that has tests written for it?

推荐答案

我发现现有的图书馆。写了一个测试。将它包装在一个函数中,以便它不会污染全局命名空间。

I found an existing library. Wrote a test. Wrapped it in a function so that it didn't pollute the global namespace, that's about it.

http://github.com/augustl/js-inflate

这篇关于JavaScript膨胀实现(可能只有FF 3.6)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆