JavaScript代碼格式化工具(JS程式碼分析必備)

來源:互聯網
上載者:User
推廣等的控制廣告顯示的JS檔案及產生的廣告單元的源檔案中的JavaScript代碼都是經過JS壓縮器以及混淆器處理後的。以達到減小這些檔案的大小的目的。

當我們需要分析這些檔案的時候就需要格式化javascript代碼的工具,使之方便閱讀。

在這裡我給大家介紹的就是 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, 代碼, 格式化

  • 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可以下載。 […]

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.