Java教程

JavaScript代码格式化工具(JS代码分析必备)

本文主要是介绍JavaScript代码格式化工具(JS代码分析必备),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

JavaScript代码格式化工具(JS代码分析必备)

Posted on 2009-07-17 08:57  lzhdim   推广等的控制广告显示的JS文件及生成的广告单元的源文件中的JavaScript代码都是经过JS压缩器以及混淆器处理后的。以达到减小这些文件的大小的目的。

当我们需要分析这些文件的时候就需要格式化javascript代码的工具,使之方便阅读。

在这里我给大家介绍的就是 Javascript Code Improver 一个免费的工具。他很简单,只有格式化代码这一个功能,不过,足够用了。支持中英文界面切换。

下载:Javascript Code Improver

Javascript Code Improver

JavaScript Code Improver

Cannot read your own JavaScript code?
Cannot find that closing brace?
Lost all hope of making head or tail of the JavaScript code inherited from your colleague?
Or just curious of how JavaScript works?

Try JavaScript Code Improver!

With JavaScript Code Improver you are just one click away from making any JavaScript clear, easily comprehensible and ready for printing thus saving the time you spend on editing, debugging and modifying it. Forget about all problems resulting from those illegible JavaScripts!

Compare how the same piece of code looks before:

<script language="JavaScript">var i=0,s="",k=0;function foo(){for(j=0;j<10;j++){for(i=0;i<10;i++){s="string1";k=Math.floor(Math.random()*10);}for(i=20;i>9;i--){s="string2";k=i;}}}</script>

and after processing by JavaScript Code Improver:

<script language="JavaScript">
var i = 0, s = "", k = 0;
function foo()
{
    for(j = 0; j < 10; j++)
    {
        for(i = 0; i < 10; i++)
        {
            s = "string1";
            k = Math.floor( Math.random()*10 );
        }
        for(i = 20; i > 9; i--)
        {
            s = "string2";
            k = i;
        }
    }
}
</script>

You can see the difference, can’t you?

The program’s flexible settings let you structure the code in any way you like. So, even if your JavaScript code is pretty comprehensible, you can just give it more professional or just more pleasant feel.

Tags: javascript, 代码, 格式化

Post JavaScript代码格式化工具(JS代码分析必备) to digg.Post JavaScript代码格式化工具(JS代码分析必备) to Redditadd to stumbleuponGoogle Bookmarkmywebbookmark on del.cio.usnewsvineTailrankmagnoliaFurlco.mmentsshadowssimpyblinklist  
  • Google AdSense新的点击模式对统计工具的影响
  • Adsense代码分析旧版本show_ads.js

One Response to “JavaScript代码格式化工具(JS代码分析必备)”

  1. Roboter's blog » js压缩,解压缩工具 Says:
    09月 5th, 2008 at 4:58 pm

    […] Javascript Code Improver,可以将将压缩的js文件还原。该站点似乎打不开,在http://www.cnzzr.cn/2007/11/javascript-code-improver.html可以下载。 […]

这篇关于JavaScript代码格式化工具(JS代码分析必备)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!