English 中文(简体)
Javascruit 源代码查找
原标题:Javascript source code finding
  • 时间:2012-05-23 12:20:15
  •  标签:
  • javascript

我有一个外部的xxxxxx.js文件,其内容以无法理解的格式存在。

Eg: {G( d& & amp;! E.6c (d)) {E.2A} (E.2A?" ":") 等 。

我不知道自从我对这样的发展很陌生以来,这个代码是怎么做到的。 有人能帮我找到这个代码吗?

谢谢...

最佳回答

这种代码是因为这些 js 以微小的形式出现。 微小的 js 表示它通过缩短变量和剪切空格的名称、删除注释等, 尽可能转换为最小代码...

压缩您的javascript文件是一个好主意的原因有很多:

  1. Quicker download times for your users.
  2. Reduced bandwidth consumption of your website.
  3. Reduced number of HTTP requests on your server when combining many javascript files into one compressed file, thus reducing the server load and allowing more visitors to access your website.
  4. Comments and whitespace are not needed for javascript execution; Removing them will speed up script execution times.
问题回答

询问谁提供了开发/ 调试版本的代码。 您已被优化了大小的代码, 且该代码不是手工操作的 。

该代码通过一个“识别器”,旨在:

  1. make the code shorter
  2. obfuscate the code




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签