好用的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.64508 ndmssBavaantack 5.188.210.80 2019-04-25 19:04

njl [url=https://onlinecasinoss24.us/#]las vegas free slots[/url]

no.64507 ncvozBavaantack 5.188.210.80 2019-04-25 19:04

aeo [url=https://onlinecasinoss24.us/#]free slots games[/url]

no.64506 fhykiBavaantack 5.188.210.76 2019-04-25 18:56

iiz [url=https://onlinecasinoster.us/#]free casino games[/url]

no.64505 thtkcBavaantack 5.188.210.74 2019-04-25 18:54

jkx [url=https://onlinecasinoplay.us/#]free slots games[/url]

no.64503 zjcrdBavaantack 5.188.210.74 2019-04-25 18:47

twt [url=https://onlinecasinoplay.us/#]caesars online casino[/url]

no.64502 qdesbBavaantack 5.188.210.71 2019-04-25 18:45

hnz [url=https://onlinecasinoslots888.us/#]chumba casino[/url]

no.64501 rorebBavaantack 5.188.210.74 2019-04-25 18:44

jba [url=https://onlinecasinoplay.us/#]vegas slots online[/url]

no.64500 bquipBavaantack 5.188.210.71 2019-04-25 18:44

uwk [url=https://onlinecasinoslots888.us/#]real casino slots[/url]

no.64499 rasutBavaantack 5.188.210.78 2019-04-25 18:43

bqu [url=https://onlinecasinomax.us/#]online casinos for us players[/url]

no.64498 yewyqBavaantack 5.188.210.75 2019-04-25 18:43

dgd [url=https://onlinecasinoslotser.us/#]online casino gambling[/url]

no.64497 fcvvbBavaantack 5.188.210.75 2019-04-25 18:43

usr [url=https://onlinecasinoslotser.us/#]zone online casino[/url]

no.64496 ybckhBavaantack 5.188.210.72 2019-04-25 18:42

yig [url=https://onlinecasinoslots247.us/#]slots for real money[/url]

no.64494 idgtmBavaantack 5.188.210.78 2019-04-25 18:30

tng [url=https://onlinecasinomax.us/#]gold fish casino slots[/url]

no.64493 vqvjzBavaantack 5.188.210.75 2019-04-25 18:29

ohm [url=https://onlinecasinoslotser.us/#]virgin online casino[/url]

no.64492 deynwBavaantack 5.188.210.72 2019-04-25 18:19

fys [url=https://onlinecasinoslots247.us/#]world class casino slots[/url]

no.64491 ykbvbBavaantack 5.188.210.80 2019-04-25 18:19

wbh [url=https://casinorealmoney.us/#]casino game[/url]

no.64490 xrwbwBavaantack 5.188.210.80 2019-04-25 18:19

jjg [url=https://onlinecasinoss24.us/#]online casino games free[/url]

no.64489 mwedqBavaantack 5.188.210.76 2019-04-25 18:15

ccf [url=https://onlinecasinoster.us/#]lady luck[/url]

no.64488 hateuBavaantack 5.188.210.74 2019-04-25 18:07

omm [url=https://onlinecasinoplay.us/#]play slots[/url]

no.64487 eabuvBavaantack 5.188.210.75 2019-04-25 18:00

jjj [url=https://onlinecasinoslotser.us/#]online casino slots[/url]

no.64486 wpbqnBavaantack 5.188.210.78 2019-04-25 18:00

awc [url=https://onlinecasinomax.us/#]chumba casino[/url]

no.64485 nascoBavaantack 5.188.210.76 2019-04-25 17:58

nxr [url=https://onlinecasinoster.us/#]free online casino games[/url]

no.64484 aiutxBavaantack 5.188.210.78 2019-04-25 17:54

olr [url=https://onlinecasinomax.us/#]free online slots[/url]

no.64483 zhbfnBavaantack 5.188.210.74 2019-04-25 17:54

mfo [url=https://onlinecasinoplay.us/#]casino games online[/url]

no.64482 huuyqBavaantack 5.188.210.80 2019-04-25 17:53

jow [url=https://onlinecasinoss24.us/#]grand falls casino[/url]

no.64481 bbtzvBavaantack 5.188.210.80 2019-04-25 17:53

qlj [url=https://onlinecasinoss24.us/#]all free casino slot games[/url]

no.64480 xcnhlBavaantack 5.188.210.76 2019-04-25 17:42

pzo [url=https://onlinecasinoster.us/#]vegas world slots[/url]

no.64479 otdnbBavaantack 5.188.210.72 2019-04-25 17:36

jrr [url=https://onlinecasinoslots247.us/#]online casino slots[/url]

no.64478 ogcfqBavaantack 5.188.210.72 2019-04-25 17:36

zxp [url=https://onlinecasinoslots247.us/#]cashman casino slots[/url]

no.64477 rezusBavaantack 5.188.210.78 2019-04-25 17:26

qzr [url=https://onlinecasinomax.us/#]casino games free online[/url]

no.64476 rauyrBavaantack 5.188.210.76 2019-04-25 17:11

yno [url=https://onlinecasinoster.us/#]tropicana online casino[/url]

no.64475 zfyweBavaantack 5.188.210.78 2019-04-25 17:07

yks [url=https://onlinecasinomax.us/#]zone online casino games[/url]

no.64474 ynugiBavaantack 5.188.210.74 2019-04-25 17:00

osm [url=https://onlinecasinoplay.us/#]online casino real money[/url]

no.64473 rzdrcBavaantack 5.188.210.72 2019-04-25 17:00

zzt [url=https://onlinecasinoslots247.us/#]online casinos for us players[/url]

no.64472 skifaBavaantack 5.188.210.80 2019-04-25 16:59

faj [url=https://onlinecasinoss24.us/#]igt free slots[/url]

no.64471 uqugeBavaantack 5.188.210.80 2019-04-25 16:59

dcz [url=https://casinorealmoney.us/#]casino slots[/url]

no.64470 xbybaBavaantack 5.188.210.74 2019-04-25 16:56

anc [url=https://onlinecasinoplay.us/#]online casino real money[/url]

no.64469 udtpqBavaantack 5.188.210.75 2019-04-25 16:52

bya [url=https://onlinecasinoslotser.us/#]casino games free online[/url]

no.64468 lppxqBavaantack 5.188.210.75 2019-04-25 16:52

zqb [url=https://onlinecasinoslotser.us/#]vegas slots online[/url]

no.64467 dfhgqBavaantack 5.188.210.72 2019-04-25 16:44

pnd [url=https://onlinecasinoslots247.us/#]casino real money[/url]

no.64466 dtqreBavaantack 5.188.210.78 2019-04-25 16:39

vkf [url=https://onlinecasinomax.us/#]caesars free slots[/url]

no.64465 bfmfcBavaantack 5.188.210.75 2019-04-25 16:38

rac [url=https://onlinecasinoslotser.us/#]slots lounge[/url]

no.64464 ksbfwBavaantack 5.188.210.78 2019-04-25 16:35

vip [url=https://onlinecasinomax.us/#]high 5 casino[/url]

no.64463 mrtmzBavaantack 5.188.210.80 2019-04-25 16:33

eia [url=https://onlinecasinoss24.us/#]free slots online no download no registration[/url]

no.64462 jitbxBavaantack 5.188.210.80 2019-04-25 16:33

fyc [url=https://onlinecasinoss24.us/#]usa no deposit casino bonus codes[/url]

no.64461 dbrdyBavaantack 5.188.210.76 2019-04-25 16:29

tye [url=https://onlinecasinoster.us/#]slots of vegas[/url]

no.64460 jgzqkBavaantack 5.188.210.74 2019-04-25 16:20

jjt [url=https://onlinecasinoplay.us/#]empire city online casino[/url]

no.64459 mgzlwBavaantack 5.188.210.71 2019-04-25 16:18

nsm [url=https://onlinecasinoslots888.us/#]gold fish casino slots[/url]

no.64457 qiafwBavaantack 5.188.210.78 2019-04-25 16:12

yhu [url=https://onlinecasinomax.us/#]casino blackjack[/url]

no.64456 fdgnmBavaantack 5.188.210.76 2019-04-25 16:10

ror [url=https://onlinecasinoster.us/#]slots online[/url]

发表评论:

邮箱: