好用的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.25171 ilpsaway 5.188.210.35 2018-11-19 11:56

<a href=" https://levitraa.ooo/ ">levitra prices</a> - generic levitra $9 levitra at walmart, [url=https://levitraa.ooo/]levitra cost[/url] https://levitraa.ooo/

no.25170 jeccgcreecewexumma 195.154.187.229 2018-11-19 11:55

casino games free online <a href="https://onlinecasino.us.org/">free vegas casino games</a> | <a href=" https://onlinecasino.us.org/ ">free casino games slots</a> | [url=https://onlinecasino.us.org/]las vegas casinos[/url] [url=https://onlinecasino.us.org/]gold fish casino slots[/url]

no.25169 opaszcreecewexumma 195.154.187.229 2018-11-19 11:55

free slots casino games <a href="https://onlinecasino.us.org/">slots for real money</a> | <a href=" https://onlinecasino.us.org/ ">play free vegas casino games</a> | [url=https://onlinecasino.us.org/]slotomania free slots[/url] [url=https://onlinecasino.us.org/]slots for real money[/url]

no.25168 dsnudcreecewexumma 62.210.202.55 2018-11-19 11:54

free vegas casino games <a href="https://onlinecasinospark.com/">firekeepers casino</a> | <a href=" https://onlinecasinospark.com/ ">casino slots</a> | [url=https://onlinecasinospark.com/]las vegas casinos[/url] [url=https://onlinecasinospark.com/]caesars free slots[/url]

no.25167 qkwpqcreecewexumma 195.154.170.190 2018-11-19 11:50

slot games <a href="https://onlinecasinodd.com/">casino games free online</a> | <a href=" https://onlinecasinodd.com/ ">casino play</a> | [url=https://onlinecasinodd.com/]play slots online[/url] [url=https://onlinecasinodd.com/]free online casino slots[/url]

no.25166 jylthuct 5.188.210.35 2018-11-19 11:32

<a href=" https://ventolin.ooo/ ">buy ventolin</a>, ventolin inhaler coupons 2018 online ventolin, [url=https://ventolin.ooo/]ventolin brand or generic[/url] https://ventolin.ooo/

no.25165 kylzxcreecewexumma 62.210.202.176 2018-11-19 11:24

slotomania free slots <a href="https://casinorealmoney.us/">online casinos for us players</a> | <a href=" https://casinorealmoney.us/ ">free online casino slots</a> | [url=https://casinorealmoney.us/]casino games free online[/url] [url=https://casinorealmoney.us/]free casino[/url]

no.25164 llbqxydx 5.188.210.35 2018-11-19 11:21

<a href=" https://propecia.ooo/ ">propecia side effects</a>, propecia without prescription cheap propecia - [url=https://propecia.ooo/]buy propecia[/url] https://propecia.ooo/

no.25163 ryiitcreecewexumma 195.154.170.194 2018-11-19 11:15

online casinos <a href="https://onlinecasinoflow.com/">caesars online casino</a> | <a href=" https://onlinecasinoflow.com/ ">winstar world casino</a> | [url=https://onlinecasinoflow.com/]online gambling casino[/url] [url=https://onlinecasinoflow.com/]slots free games[/url]

no.25162 ceaikcreecewexumma 195.154.170.190 2018-11-19 11:15

free casino <a href="https://onlinecasinodd.com/">big fish casino</a> | <a href=" https://onlinecasinodd.com/ ">free online slots</a> | [url=https://onlinecasinodd.com/]firekeepers casino[/url] [url=https://onlinecasinodd.com/]casino blackjack[/url]

no.25161 yetpwrdl 5.188.210.35 2018-11-19 11:06

<a href=" https://doxycycline.ooo/ ">doxycycline hyclate vs monohydrate</a> - doxycycline mono walmart pharmacy doxycycline price - [url=https://doxycycline.ooo/]side effects for doxycycline[/url] https://doxycycline.ooo/

no.25160 slecbzeh 5.188.210.35 2018-11-19 10:58

<a href=" https://levitraa.ooo/ ">40 mg levitra dosage</a> - levitra prices levitra without a doctor prescription - [url=https://levitraa.ooo/]buy levitra[/url] https://levitraa.ooo/

no.25159 tukhfcreecewexumma 62.210.202.48 2018-11-19 10:56

casino blackjack <a href="https://onlinecasino888.us.org/">free casino slot games</a> | <a href=" https://onlinecasino888.us.org/ ">caesars online casino</a> | [url=https://onlinecasino888.us.org/]play online casino[/url] [url=https://onlinecasino888.us.org/]real casino[/url]

no.25158 urjfqcreecewexumma 62.210.202.55 2018-11-19 10:56

free online slots <a href="https://onlinecasinospark.com/">casino game</a> | <a href=" https://onlinecasinospark.com/ ">casino games online</a> | [url=https://onlinecasinospark.com/]free casino games sun moon[/url] [url=https://onlinecasinospark.com/]play slots[/url]

no.25157 sxppycreecewexumma 62.210.202.55 2018-11-19 10:56

slot games <a href="https://onlinecasinospark.com/">free casino games sun moon</a> | <a href=" https://onlinecasinospark.com/ ">free online casino slots</a> | [url=https://onlinecasinospark.com/]slots games free[/url] [url=https://onlinecasinospark.com/]penny slots free online[/url]

no.25156 yflnucreecewexumma 195.154.187.229 2018-11-19 10:51

casino games <a href="https://onlinecasino.us.org/">free casino</a> | <a href=" https://onlinecasino.us.org/ ">vegas slots</a> | [url=https://onlinecasino.us.org/]borgata online casino[/url] [url=https://onlinecasino.us.org/]vegas casino slots[/url]

no.25155 tcgzrcreecewexumma 195.154.170.190 2018-11-19 10:51

gsn casino <a href="https://onlinecasinodd.com/">firekeepers casino</a> | <a href=" https://onlinecasinodd.com/ ">free casino games</a> | [url=https://onlinecasinodd.com/]casino bonus codes[/url] [url=https://onlinecasinodd.com/]high 5 casino[/url]

no.25154 gngzbcreecewexumma 195.154.170.190 2018-11-19 10:51

vegas slots online <a href="https://onlinecasinodd.com/">slots free games</a> | <a href=" https://onlinecasinodd.com/ ">casino bonus codes</a> | [url=https://onlinecasinodd.com/]caesars slots[/url] [url=https://onlinecasinodd.com/]winstar world casino[/url]

no.25153 rxmgncreecewexumma 195.154.170.194 2018-11-19 10:47

old vegas slots <a href="https://onlinecasinoflow.com/">real casino slots</a> | <a href=" https://onlinecasinoflow.com/ ">slots free</a> | [url=https://onlinecasinoflow.com/]free casino games no download[/url] [url=https://onlinecasinoflow.com/]casino slots[/url]

no.25152 iljlpcreecewexumma 195.154.170.194 2018-11-19 10:44

vegas world slots <a href="https://onlinecasinoflow.com/">casino bonus codes</a> | <a href=" https://onlinecasinoflow.com/ ">online casinos for us players</a> | [url=https://onlinecasinoflow.com/]casino real money[/url] [url=https://onlinecasinoflow.com/]pch slots[/url]

no.25151 hknlptuv 5.188.210.35 2018-11-19 10:35

<a href=" https://ventolin.ooo/ ">ventolin</a> - cheap ventolin generic ventolin, [url=https://ventolin.ooo/]generic ventolin[/url] https://ventolin.ooo/

no.25150 rlpuxcreecewexumma 195.154.187.245 2018-11-19 10:30

casino bonus <a href="https://onlinecasino2018.us.org/">slot games</a> | <a href=" https://onlinecasino2018.us.org/ ">slots lounge</a> | [url=https://onlinecasino2018.us.org/]simslots free slots[/url] [url=https://onlinecasino2018.us.org/]play online casino[/url]

no.25149 wcahwgpo 5.188.210.35 2018-11-19 10:27

<a href=" https://propecia.ooo/ ">propecia for women's hair loss</a> - propecia for women's hair loss brand name propecia, [url=https://propecia.ooo/]propecia[/url] https://propecia.ooo/

no.25148 ctsnhcreecewexumma 195.154.187.229 2018-11-19 10:26

vegas world casino games <a href="https://onlinecasino.us.org/">casino game</a> | <a href=" https://onlinecasino.us.org/ ">simslots free slots</a> | [url=https://onlinecasino.us.org/]gsn casino games[/url] [url=https://onlinecasino.us.org/]cashman casino slots[/url]

no.25147 pyemhcreecewexumma 195.154.187.229 2018-11-19 10:26

online casino games <a href="https://onlinecasino.us.org/">casino games free online</a> | <a href=" https://onlinecasino.us.org/ ">big fish casino</a> | [url=https://onlinecasino.us.org/]borgata online casino[/url] [url=https://onlinecasino.us.org/]casino games[/url]

no.25146 pvgxccreecewexumma 195.154.187.229 2018-11-19 10:26

foxwoods online casino <a href="https://onlinecasino.us.org/">zone online casino</a> | <a href=" https://onlinecasino.us.org/ ">free online casino slots</a> | [url=https://onlinecasino.us.org/]online gambling[/url] [url=https://onlinecasino.us.org/]high 5 casino[/url]

no.25145 rstvocreecewexumma 62.210.202.55 2018-11-19 10:22

gold fish casino slots <a href="https://onlinecasinospark.com/">slots games free</a> | <a href=" https://onlinecasinospark.com/ ">brian christopher slots</a> | [url=https://onlinecasinospark.com/]free casino games sun moon[/url] [url=https://onlinecasinospark.com/]online casino slots[/url]

no.25144 cwgeccreecewexumma 62.210.202.55 2018-11-19 10:22

empire city online casino <a href="https://onlinecasinospark.com/">chumba casino</a> | <a href=" https://onlinecasinospark.com/ ">online casino real money</a> | [url=https://onlinecasinospark.com/]scatter slots[/url] [url=https://onlinecasinospark.com/]world class casino slots[/url]

no.25143 cmexxcreecewexumma 62.210.202.48 2018-11-19 10:15

online casino bonus <a href="https://onlinecasino888.us.org/">free casino games slot machines</a> | <a href=" https://onlinecasino888.us.org/ ">caesars online casino</a> | [url=https://onlinecasino888.us.org/]hyper casinos[/url] [url=https://onlinecasino888.us.org/]casino games[/url]

no.25142 cwovtcreecewexumma 195.154.170.194 2018-11-19 10:12

gsn casino games <a href="https://onlinecasinoflow.com/">free slots games</a> | <a href=" https://onlinecasinoflow.com/ ">doubledown casino</a> | [url=https://onlinecasinoflow.com/]casino blackjack[/url] [url=https://onlinecasinoflow.com/]slots online[/url]

no.25141 fhbrzsth 5.188.210.35 2018-11-19 10:02

<a href=" https://doxycycline.ooo/ ">doxycycline 100mg cost at walmart</a>, doxycycline monohydrate doxycycline mono 100 mg - [url=https://doxycycline.ooo/]buy doxycycline[/url] https://doxycycline.ooo/

no.25140 qxszitej 5.188.210.35 2018-11-19 10:00

<a href=" https://levitraa.ooo/ ">levitra 20 mg</a> - levitra 20 mg para que sirve $9 levitra at walmart, [url=https://levitraa.ooo/]levitra without a doctor prescription[/url] https://levitraa.ooo/

no.25139 qhzbycreecewexumma 62.210.202.176 2018-11-19 09:59

slots free games <a href="https://casinorealmoney.us/">free vegas casino games</a> | <a href=" https://casinorealmoney.us/ ">casino games online</a> | [url=https://casinorealmoney.us/]vegas world slots[/url] [url=https://casinorealmoney.us/]free casino games online[/url]

no.25138 eksxucreecewexumma 62.210.202.176 2018-11-19 09:59

free casino <a href="https://casinorealmoney.us/">casino games online</a> | <a href=" https://casinorealmoney.us/ ">free casino games</a> | [url=https://casinorealmoney.us/]online casino[/url] [url=https://casinorealmoney.us/]doubledown casino[/url]

no.25137 youspcreecewexumma 62.210.202.48 2018-11-19 09:51

free online casino slots <a href="https://onlinecasino888.us.org/">heart of vegas free slots</a> | <a href=" https://onlinecasino888.us.org/ ">casino online slots</a> | [url=https://onlinecasino888.us.org/]heart of vegas free slots[/url] [url=https://onlinecasino888.us.org/]casino games free online[/url]

no.25136 lurxvcreecewexumma 62.210.202.55 2018-11-19 09:48

old vegas slots <a href="https://onlinecasinospark.com/">online casino real money</a> | <a href=" https://onlinecasinospark.com/ ">free online slots</a> | [url=https://onlinecasinospark.com/]best online casino[/url] [url=https://onlinecasinospark.com/]casino games free[/url]

no.25135 xgcbyqnp 5.188.210.35 2018-11-19 09:40

<a href=" https://ventolin.ooo/ ">ventolin inhaler recall</a> - ventolin copay assistance card ventolin without a doctors prescription, [url=https://ventolin.ooo/]$15 ventolin[/url] https://ventolin.ooo/

no.25134 kbfemijp 5.188.210.35 2018-11-19 09:32

<a href=" https://propecia.ooo/ ">cost of propecia</a> - propecia stock propecia without a doctors prescription, [url=https://propecia.ooo/]buy propecia[/url] https://propecia.ooo/

no.25133 qjrescreecewexumma 195.154.170.194 2018-11-19 09:31

slots free games <a href="https://onlinecasinoflow.com/">free casino games sun moon</a> | <a href=" https://onlinecasinoflow.com/ ">best online casino</a> | [url=https://onlinecasinoflow.com/]bovada casino[/url] [url=https://onlinecasinoflow.com/]best online casino[/url]

no.25132 zjyjzcreecewexumma 195.154.170.190 2018-11-19 09:22

firekeepers casino <a href="https://onlinecasinodd.com/">winstar world casino</a> | <a href=" https://onlinecasinodd.com/ ">free online casino</a> | [url=https://onlinecasinodd.com/]online gambling[/url] [url=https://onlinecasinodd.com/]free slots[/url]

no.25131 tvswlcreecewexumma 195.154.170.190 2018-11-19 09:22

play slots online <a href="https://onlinecasinodd.com/">free vegas casino games</a> | <a href=" https://onlinecasinodd.com/ ">vegas world slots</a> | [url=https://onlinecasinodd.com/]online casino bonus[/url] [url=https://onlinecasinodd.com/]casino online slots[/url]

no.25130 bhteucreecewexumma 62.210.202.48 2018-11-19 09:20

free slots 777 <a href="https://onlinecasino888.us.org/">free casino games slot machines</a> | <a href=" https://onlinecasino888.us.org/ ">high 5 casino</a> | [url=https://onlinecasino888.us.org/]cashman casino slots[/url] [url=https://onlinecasino888.us.org/]foxwoods online casino[/url]

no.25129 vamxpcreecewexumma 62.210.202.176 2018-11-19 09:19

free slots casino games <a href="https://casinorealmoney.us/">real money casino</a> | <a href=" https://casinorealmoney.us/ ">foxwoods online casino</a> | [url=https://casinorealmoney.us/]play slots[/url] [url=https://casinorealmoney.us/]vegas slots online[/url]

no.25128 wjzhtcreecewexumma 62.210.202.176 2018-11-19 09:16

casino online <a href="https://casinorealmoney.us/">free casino</a> | <a href=" https://casinorealmoney.us/ ">slotomania free slots</a> | [url=https://casinorealmoney.us/]free slots games[/url] [url=https://casinorealmoney.us/]free casino games no download[/url]

no.25127 jzkgzxht 5.188.210.35 2018-11-19 09:03

<a href=" https://levitraa.ooo/ ">levitra without prescription</a> - levitra without prescription levitra 20 mg para que sirve, [url=https://levitraa.ooo/]levitra 20 mg cost walmart[/url] https://levitraa.ooo/

no.25126 hmxbegyz 5.188.210.35 2018-11-19 09:01

<a href=" https://doxycycline.ooo/ ">doxycycline hyclate 100 mg</a>, doxycycline how to take doxycycline, [url=https://doxycycline.ooo/]common side effects of doxycycline[/url] https://doxycycline.ooo/

no.25125 mdjxncreecewexumma 62.210.202.176 2018-11-19 08:57

lady luck <a href="https://casinorealmoney.us/">play free vegas casino games</a> | <a href=" https://casinorealmoney.us/ ">play slots online</a> | [url=https://casinorealmoney.us/]casino games[/url] [url=https://casinorealmoney.us/]online casinos[/url]

no.25124 lbyjccreecewexumma 195.154.187.229 2018-11-19 08:54

vegas world slots <a href="https://onlinecasino.us.org/">free slots 777</a> | <a href=" https://onlinecasino.us.org/ ">casino play</a> | [url=https://onlinecasino.us.org/]las vegas casinos[/url] [url=https://onlinecasino.us.org/]gsn casino slots[/url]

no.25123 yxbblcreecewexumma 195.154.187.229 2018-11-19 08:54

online slot games <a href="https://onlinecasino.us.org/">slots online</a> | <a href=" https://onlinecasino.us.org/ ">world class casino slots</a> | [url=https://onlinecasino.us.org/]online casino[/url] [url=https://onlinecasino.us.org/]slots games free[/url]

no.25122 ieqdxcreecewexumma 195.154.170.190 2018-11-19 08:50

heart of vegas free slots <a href="https://onlinecasinodd.com/">empire city online casino</a> | <a href=" https://onlinecasinodd.com/ ">tropicana online casino</a> | [url=https://onlinecasinodd.com/]casino blackjack[/url] [url=https://onlinecasinodd.com/]casino slots[/url]

发表评论:

邮箱: