好用的js压缩工具esc

js压缩在高访问量的项目中是很有必要的。以前在网络上找了很多软件,都有这样那样的一些问题,有句话说得好"js压缩没有权威"。但esc确实是一款很不错的工具。

使用方法:

ESC(ECMAScript cruncher)这个工具只能在Windows下使用,ESC.wsf提供5种压缩级别,从0到4:

Level 0 :: No compression 不对JS文件进行压缩

Level 1 :: Comment removal 移除JS文件中的注释

Level 2 :: Whitespace removal 移除JS文件中的注释及空行(一般选择此级别就足够了)

Level 3 :: Newline removal 移除JS文件中的注释,将所有代码合并为一行

Level 4 :: Variable substitution 提供最新的压缩率,移除JS文件中的注释,将所有代码合并为一行,并且修改JS文件中的变量名

在WINDOWS命令行下执行

cscript ESC.wsf -ow 压缩后文件.js 压缩前文件.js 将压缩前的js文件按照压缩级别2来压缩(ESC.wsf默认压缩级别为2)

cscript ESC.wsf -l 3 -ow 压缩后文件.js Common.js 将压缩前的js文件按照压缩级别3来压缩为"压缩后文件.js"

需要注意的是,ESC.wsf压缩级别4会把变量名修改,如果你的js中用到了全局变量或者类的话,就不能使用该压缩级别了,否则其它使用你的js的文件可能会无法正常运行。

文件下载: 点击下载

最新评论:

no.57754 rhugcBavaantack 5.188.210.60 2019-03-21 02:25

play free win real cash <a href="https://casinorealmoneyplay.us/#">slot machines for home entertainment</a> | [url=https://casinorealmoneyplay.us/#]house of fun free slots[/url] | https://casinorealmoneyplay.us/#

no.57753 frbjfBavaantack 5.188.210.68 2019-03-21 02:17

casino slots free games <a href="https://onlinecasinoslotster.us/#">vegas world slots</a>

no.57752 dlvzhBavaantack 5.188.210.67 2019-03-21 02:13

las vegas casinos slots machines [url=https://onlinecasinoslotsix.us/#]free slots online no download no registration[/url]

no.57751 xehjuBavaantack 5.188.210.62 2019-03-21 02:02

mjafyn [url=https://casinorealmoneynow.us/#]free slots no download[/url]

no.57750 pjgmlBavaantack 5.188.210.70 2019-03-21 01:58

play free slots for fun <a href="https://onlinecasinolime.us/#">slots of vegas</a>

no.57749 mlatlBavaantack 5.188.210.66 2019-03-21 01:53

grand falls casino <a href="https://onlinecasinoplay.us.org/#">bigfish casino online games</a> | [url=https://onlinecasinoplay.us.org/#]online casino games[/url] | https://onlinecasinoplay.us.org/#

no.57748 ficqbBavaantack 5.188.210.70 2019-03-21 01:32

slot machine games free [url=https://onlinecasinolime.us/#]vegas free slots[/url]

no.57747 qewkeBavaantack 5.188.210.70 2019-03-21 01:22

liberty slots casino <a href="https://onlinecasinolime.us/#">play free slot</a> | [url=https://onlinecasinolime.us/#]free games online no download no registration[/url] | https://onlinecasinolime.us/#

no.57746 vdcwwBavaantack 5.188.210.64 2019-03-21 01:20

caesars free slots <a href="https://onlinecasinoslotsy.us/#">casino blackjack</a>

no.57745 yjfrjBavaantack 5.188.210.60 2019-03-21 01:19

newest usa online casinos [url=https://casinorealmoneyplay.us/#]my vegas slots[/url]

no.57744 hqwtyBavaantack 5.188.210.68 2019-03-21 01:08

pch slots tournament <a href="https://onlinecasinoslotster.us/#">all free casino slots games</a> | [url=https://onlinecasinoslotster.us/#]caesar casino free slots games[/url] | https://onlinecasinoslotster.us/#

no.57743 xdtveBavaantack 5.188.210.62 2019-03-21 01:03

online casino no deposit free welcome bonus <a href="https://casinorealmoneynow.us/#">bigfish casino online games</a>

no.57742 zsnnfBavaantack 5.188.210.67 2019-03-21 00:39

bonus casino <a href="https://onlinecasinoslotsix.us/#">bovada casino</a> | [url=https://onlinecasinoslotsix.us/#]play lady luck online[/url] | https://onlinecasinoslotsix.us/#

no.57739 szthjBavaantack 5.188.210.66 2019-03-21 00:18

free slots [url=https://onlinecasinoplay.us.org/#]free vegas casino games[/url]

no.57738 ixsopBavaantack 5.188.210.70 2019-03-21 00:11

all free slots <a href="https://onlinecasinolime.us/#">free online bingo vegas world</a>

no.57737 wshslBavaantack 5.188.210.68 2019-03-21 00:06

no deposit casino <a href="https://onlinecasinoslotster.us/#">online casinos for us players</a>

no.57736 omfxjBavaantack 5.188.210.62 2019-03-20 23:48

300 free slots no download <a href="https://casinorealmoneynow.us/#">online casino bonus</a> | [url=https://casinorealmoneynow.us/#]vegas world slots[/url] | https://casinorealmoneynow.us/#

no.57735 fneqzBavaantack 5.188.210.67 2019-03-20 23:40

newest usa online casinos <a href="https://onlinecasinoslotsix.us/#">konami free slots</a>

no.57732 yvtipBavaantack 5.188.210.64 2019-03-20 23:27

charlestown races and slots <a href="https://onlinecasinoslotsy.us/#">download free casino games</a>

no.57730 mgiadBavaantack 5.188.210.60 2019-03-20 23:10

online casino <a href="https://casinorealmoneyplay.us/#">vegas casino online</a>

no.57729 rdzjrBavaantack 5.188.210.66 2019-03-20 23:07

online slot games <a href="https://onlinecasinoplay.us.org/#">borgata online casino</a>

no.57728 gngbmBavaantack 5.188.210.68 2019-03-20 23:05

888 casino nj [url=https://onlinecasinoslotster.us/#]free slots casino games[/url]

no.57727 dmnwpBavaantack 5.188.210.67 2019-03-20 22:57

200 free slot games <a href="https://onlinecasinoslotsix.us/#">simslots free slots</a>

no.57726 kqicbBavaantack 5.188.210.64 2019-03-20 22:14

vegas world free games <a href="https://onlinecasinoslotsy.us/#">no deposit bonus codes for usa players</a> | [url=https://onlinecasinoslotsy.us/#]free online casino games[/url] | https://onlinecasinoslotsy.us/#

no.57725 ggnnxBavaantack 5.188.210.62 2019-03-20 22:14

vegas casino free online games [url=https://casinorealmoneynow.us/#]free slots 777[/url]

no.57724 bklasBavaantack 5.188.210.60 2019-03-20 22:09

free casino games no download <a href="https://casinorealmoneyplay.us/#">usa no deposit casino bonus codes</a>

no.57723 zbylxBavaantack 5.188.210.64 2019-03-20 21:35

free buffalo slots [url=https://onlinecasinoslotsy.us/#]pop slots casino[/url]

no.57722 gozzsBavaantack 5.188.210.68 2019-03-20 21:31

buffalo slots <a href="https://onlinecasinoslotster.us/#">free penny slot machine games</a>

no.57721 stgbyBavaantack 5.188.210.70 2019-03-20 21:22

online casinos for us players <a href="https://onlinecasinolime.us/#">play casino slots</a> | [url=https://onlinecasinolime.us/#]jackpot magic slots download[/url] | https://onlinecasinolime.us/#

no.57720 krqdbBavaantack 5.188.210.70 2019-03-20 21:22

jack online casino <a href="https://onlinecasinolime.us/#">wizard of oz slots</a>

no.57719 ovcphBavaantack 5.188.210.66 2019-03-20 21:21

big fish casino <a href="https://onlinecasinoplay.us.org/#">maryland live casino online</a> | [url=https://onlinecasinoplay.us.org/#]vegas slots[/url] | https://onlinecasinoplay.us.org/#

no.57718 xigtxBavaantack 5.188.210.70 2019-03-20 21:21

da vinci diamonds free online slots [url=https://onlinecasinolime.us/#]jackpot magic slots download[/url]

no.57717 zlwldBavaantack 5.188.210.67 2019-03-20 21:07

free online casino games [url=https://onlinecasinoslotsix.us/#]gossip slots[/url]

no.57716 tljxpBavaantack 5.188.210.60 2019-03-20 20:53

online casino reviews <a href="https://casinorealmoneyplay.us/#">100 no deposit bonus codes</a> | [url=https://casinorealmoneyplay.us/#]free games online no download no registration[/url] | https://casinorealmoneyplay.us/#

no.57715 pzpisBavaantack 5.188.210.62 2019-03-20 20:31

cgfmjw [url=https://casinorealmoneynow.us/#]can play zone casino free[/url]

no.57714 urvnsBavaantack 5.188.210.66 2019-03-20 20:21

vegas world slots [url=https://onlinecasinoplay.us.org/#]prairie meadows casino[/url]

no.57713 vnrhlBavaantack 5.188.210.68 2019-03-20 20:21

pompeii slots <a href="https://onlinecasinoslotster.us/#">free slot games no download no registration</a> | [url=https://onlinecasinoslotster.us/#]empire city online casino[/url] | https://onlinecasinoslotster.us/#

no.57712 hkqbfBavaantack 5.188.210.62 2019-03-20 20:17

free slots games <a href="https://casinorealmoneynow.us/#">free casino</a>

no.57710 odoavBavaantack 5.188.210.70 2019-03-20 20:08

big fish casino slots <a href="https://onlinecasinolime.us/#">play free blackjack against computer</a>

no.57709 pjfsdBavaantack 5.188.210.60 2019-03-20 19:56

wizard of oz slots [url=https://casinorealmoneyplay.us/#]casino slots free games[/url]

no.57708 gdhxoBavaantack 5.188.210.67 2019-03-20 19:42

play free lucky 777 slots <a href="https://onlinecasinoslotsix.us/#">absolutely free slots</a> | [url=https://onlinecasinoslotsix.us/#]play slots for real money united states[/url] | https://onlinecasinoslotsix.us/#

no.57707 rrghqBavaantack 5.188.210.64 2019-03-20 19:25

online casino gambling <a href="https://onlinecasinoslotsy.us/#">hyper casinos</a>

no.57706 eznglBavaantack 5.188.210.68 2019-03-20 19:19

zone online casino <a href="https://onlinecasinoslotster.us/#">free coins slotomania</a>

no.57704 hdkwoBavaantack 5.188.210.66 2019-03-20 19:11

big fish casino slots <a href="https://onlinecasinoplay.us.org/#">lady luck</a>

no.57703 qxgioBavaantack 5.188.210.62 2019-03-20 18:52

casino real money <a href="https://casinorealmoneynow.us/#">play slots for real money united states</a> | [url=https://casinorealmoneynow.us/#]free slots no registration[/url] | https://casinorealmoneynow.us/#

no.57702 bxzqlBavaantack 5.188.210.64 2019-03-20 18:33

las vegas casinos <a href="https://onlinecasinoslotsy.us/#">online casino games</a>

no.57700 nmwnxBavaantack 5.188.210.67 2019-03-20 18:04

300 free slots of vegas <a href="https://onlinecasinoslotsix.us/#">vegas casino free online games</a>

no.57699 qcwfcBavaantack 5.188.210.68 2019-03-20 18:01

gossip slots [url=https://onlinecasinoslotster.us/#]list of online casinos for us players[/url]

no.57698 fhguyBavaantack 5.188.210.60 2019-03-20 17:43

house of fun free slots <a href="https://casinorealmoneyplay.us/#">free casino slot games</a>

no.57696 xqnjjBavaantack 5.188.210.66 2019-03-20 17:27

best online casino <a href="https://onlinecasinoplay.us.org/#">vegas casino slots</a> | [url=https://onlinecasinoplay.us.org/#]hollywood casino online slots[/url] | https://onlinecasinoplay.us.org/#

发表评论:

邮箱: