好用的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.25912 wbysyqzc 5.188.210.35 2018-11-21 12:59

<a href=" https://accutane.ooo/ ">accutane for acne</a>, accutane for acne accutane long term side effects, [url=https://accutane.ooo/]accutane side effects years later[/url] https://accutane.ooo/

no.25911 pejsucreecewexumma 62.210.202.176 2018-11-21 12:53

free casino games slots <a href="https://casinorealmoney.us/">online gambling</a> | <a href=" https://casinorealmoney.us/ ">casino blackjack</a> | [url=https://casinorealmoney.us/]no deposit casino[/url] [url=https://casinorealmoney.us/]firekeepers casino[/url]

no.25910 twkfccreecewexumma 62.210.202.176 2018-11-21 12:53

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

no.25909 cpoaedeb 5.188.210.35 2018-11-21 12:34

<a href=" https://metformin.ooo/ ">metformin dementia</a>, metformin generic metformin dosage guide, [url=https://metformin.ooo/]metformin and pcos[/url] https://metformin.ooo/

no.25908 fsybdymg 5.188.210.35 2018-11-21 12:31

<a href=" https://viagrasuperactive.ooo/ ">viagra super active 150mg</a>, buy cheap viagra super active super active viagra 150 mg, [url=https://viagrasuperactive.ooo/]fildena super active viagra[/url] https://viagrasuperactive.ooo/

no.25907 hbfbycreecewexumma 195.154.187.245 2018-11-21 12:23

world class casino slots <a href="https://onlinecasino2018.us.org/">casino online slots</a> | <a href=" https://onlinecasino2018.us.org/ ">cashman casino slots</a> | [url=https://onlinecasino2018.us.org/]slots lounge[/url] [url=https://onlinecasino2018.us.org/]gold fish casino slots[/url]

no.25906 otbbacreecewexumma 195.154.187.229 2018-11-21 12:22

casino bonus codes <a href="https://onlinecasino.us.org/">tropicana online casino</a> | <a href=" https://onlinecasino.us.org/ ">casino slots</a> | [url=https://onlinecasino.us.org/]zone online casino games[/url] [url=https://onlinecasino.us.org/]pch slots[/url]

no.25905 ygvptcreecewexumma 195.154.187.229 2018-11-21 12:22

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

no.25904 kwvfvcreecewexumma 195.154.170.190 2018-11-21 12:21

online casinos <a href="https://onlinecasinodd.com/">house of fun slots</a> | <a href=" https://onlinecasinodd.com/ ">old vegas slots</a> | [url=https://onlinecasinodd.com/]casino slots[/url] [url=https://onlinecasinodd.com/]vegas world slots[/url]

no.25903 alebqrsv 5.188.210.35 2018-11-21 12:04

<a href=" https://synthroid.ooo/ ">synthroid without prescription</a>, what is synthroid generic for synthroid - [url=https://synthroid.ooo/]synthroid dose[/url] https://synthroid.ooo/

no.25902 pajjycreecewexumma 195.154.187.245 2018-11-21 11:56

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

no.25901 itybzcreecewexumma 195.154.187.229 2018-11-21 11:56

free casino games vegas world <a href="https://onlinecasino.us.org/">bovada casino</a> | <a href=" https://onlinecasino.us.org/ ">no deposit casino</a> | [url=https://onlinecasino.us.org/]casino games online[/url] [url=https://onlinecasino.us.org/]bovada casino[/url]

no.25900 rxebpcreecewexumma 195.154.187.229 2018-11-21 11:56

liberty slots <a href="https://onlinecasino.us.org/">free casino games no download</a> | <a href=" https://onlinecasino.us.org/ ">vegas world slots</a> | [url=https://onlinecasino.us.org/]free vegas slots[/url] [url=https://onlinecasino.us.org/]casino play[/url]

no.25899 jfdsacreecewexumma 195.154.187.229 2018-11-21 11:56

casino online <a href="https://onlinecasino.us.org/">free slots casino games</a> | <a href=" https://onlinecasino.us.org/ ">bovada casino</a> | [url=https://onlinecasino.us.org/]house of fun slots[/url] [url=https://onlinecasino.us.org/]winstar world casino[/url]

no.25898 fkpzhsai 5.188.210.35 2018-11-21 11:55

<a href=" https://accutane.ooo/ ">accutane cost</a> - accutane generic accutane reviews, [url=https://accutane.ooo/]accutane reviews[/url] https://accutane.ooo/

no.25897 gimrwcreecewexumma 195.154.170.194 2018-11-21 11:51

online casinos for us players <a href="https://onlinecasinoflow.com/">slots free games</a> | <a href=" https://onlinecasinoflow.com/ ">play slots</a> | [url=https://onlinecasinoflow.com/]slots for real money[/url] [url=https://onlinecasinoflow.com/]free online casino games[/url]

no.25896 wvejdcreecewexumma 195.154.170.190 2018-11-21 11:47

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

no.25895 wbuczcreecewexumma 195.154.187.245 2018-11-21 11:46

slotomania free slots <a href="https://onlinecasino2018.us.org/">big fish casino</a> | <a href=" https://onlinecasino2018.us.org/ ">brian christopher slots</a> | [url=https://onlinecasino2018.us.org/]play free vegas casino games[/url] [url=https://onlinecasino2018.us.org/]world class casino slots[/url]

no.25894 cbpvgcreecewexumma 195.154.170.190 2018-11-21 11:43

online casino gambling <a href="https://onlinecasinodd.com/">real casino slots</a> | <a href=" https://onlinecasinodd.com/ ">zone online casino</a> | [url=https://onlinecasinodd.com/]best online casino[/url] [url=https://onlinecasinodd.com/]free slots games[/url]

no.25893 mnkgzcreecewexumma 195.154.170.190 2018-11-21 11:43

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

no.25892 odlqycreecewexumma 62.210.202.176 2018-11-21 11:38

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

no.25891 gsifrnmd 5.188.210.35 2018-11-21 11:27

<a href=" https://viagrasuperactive.ooo/ ">cheap viagra super active</a>, viagra super active 100mg pills viagra super active plus reviews - [url=https://viagrasuperactive.ooo/]viagra super active 100mg pills[/url] https://viagrasuperactive.ooo/

no.25890 twjqynjp 5.188.210.35 2018-11-21 11:27

<a href=" https://metformin.ooo/ ">interactions for metformin</a> - metformin pcos bad news for metformin 2017, [url=https://metformin.ooo/]interactions for metformin[/url] https://metformin.ooo/

no.25889 htxtrcreecewexumma 62.210.202.48 2018-11-21 11:25

free casino games <a href="https://onlinecasino888.us.org/">gold fish casino slots</a> | <a href=" https://onlinecasino888.us.org/ ">online casino games</a> | [url=https://onlinecasino888.us.org/]big fish casino[/url] [url=https://onlinecasino888.us.org/]online gambling[/url]

no.25888 ewsewcreecewexumma 195.154.170.194 2018-11-21 11:23

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

no.25887 azptucreecewexumma 62.210.202.55 2018-11-21 11:22

heart of vegas free slots <a href="https://onlinecasinospark.com/">online slots</a> | <a href=" https://onlinecasinospark.com/ ">online slots</a> | [url=https://onlinecasinospark.com/]pch slots[/url] [url=https://onlinecasinospark.com/]caesars online casino[/url]

no.25886 lbuuncreecewexumma 62.210.202.176 2018-11-21 11:18

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

no.25885 yavtocreecewexumma 195.154.170.190 2018-11-21 11:17

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

no.25884 ydkpqcreecewexumma 62.210.202.48 2018-11-21 11:15

zone online casino games <a href="https://onlinecasino888.us.org/">free casino games slotomania</a> | <a href=" https://onlinecasino888.us.org/ ">online slots</a> | [url=https://onlinecasino888.us.org/]liberty slots[/url] [url=https://onlinecasino888.us.org/]casino game[/url]

no.25883 fkhkocreecewexumma 195.154.170.194 2018-11-21 11:11

best online casino <a href="https://onlinecasinoflow.com/">old vegas slots</a> | <a href=" https://onlinecasinoflow.com/ ">free casino games slotomania</a> | [url=https://onlinecasinoflow.com/]lady luck[/url] [url=https://onlinecasinoflow.com/]casino blackjack[/url]

no.25882 uqkkvcreecewexumma 195.154.187.229 2018-11-21 11:10

play slots online <a href="https://onlinecasino.us.org/">play slots</a> | <a href=" https://onlinecasino.us.org/ ">big fish casino</a> | [url=https://onlinecasino.us.org/]play slots[/url] [url=https://onlinecasino.us.org/]best online casino[/url]

no.25881 ialwjzob 5.188.210.35 2018-11-21 10:58

<a href=" https://synthroid.ooo/ ">synthroid coupons</a> - dangers of taking synthroid synthroid dosage - [url=https://synthroid.ooo/]synthroid without a doctors prescription[/url] https://synthroid.ooo/

no.25880 agjqqopa 5.188.210.35 2018-11-21 10:52

<a href=" https://accutane.ooo/ ">cheap accutane</a> - accutane reviews buy cheap accutane, [url=https://accutane.ooo/]side effects for accutane[/url] https://accutane.ooo/

no.25879 hnbfqcreecewexumma 62.210.202.176 2018-11-21 10:41

mgm online casino <a href="https://casinorealmoney.us/">casino online slots</a> | <a href=" https://casinorealmoney.us/ ">free casino games slotomania</a> | [url=https://casinorealmoney.us/]casino bonus[/url] [url=https://casinorealmoney.us/]real money casino[/url]

no.25878 miewjcreecewexumma 62.210.202.176 2018-11-21 10:41

casino slots <a href="https://casinorealmoney.us/">winstar world casino</a> | <a href=" https://casinorealmoney.us/ ">online casino gambling</a> | [url=https://casinorealmoney.us/]online slot games[/url] [url=https://casinorealmoney.us/]high 5 casino[/url]

no.25877 ricaocreecewexumma 195.154.170.194 2018-11-21 10:30

bovada casino <a href="https://onlinecasinoflow.com/">play slots online</a> | <a href=" https://onlinecasinoflow.com/ ">caesars slots</a> | [url=https://onlinecasinoflow.com/]tropicana online casino[/url] [url=https://onlinecasinoflow.com/]hollywood casino[/url]

no.25876 gumwqjsl 5.188.210.35 2018-11-21 10:24

<a href=" https://viagrasuperactive.ooo/ ">viagra super active plus reviews</a>, online viagra super active viagra super active 150mg - [url=https://viagrasuperactive.ooo/]generic viagra super active sildenafil[/url] https://viagrasuperactive.ooo/

no.25875 dtiducreecewexumma 62.210.202.55 2018-11-21 10:23

firekeepers casino <a href="https://onlinecasinospark.com/">play casino</a> | <a href=" https://onlinecasinospark.com/ ">lady luck</a> | [url=https://onlinecasinospark.com/]vegas world casino games[/url] [url=https://onlinecasinospark.com/]vegas world casino games[/url]

no.25874 jrgpbtcp 5.188.210.35 2018-11-21 10:21

<a href=" https://metformin.ooo/ ">metformin side effects in elderly</a>, what is metformin for how to take metformin - [url=https://metformin.ooo/]what does metformin do for you[/url] https://metformin.ooo/

no.25873 hptwkcreecewexumma 195.154.170.190 2018-11-21 10:15

play online casino <a href="https://onlinecasinodd.com/">online casino games</a> | <a href=" https://onlinecasinodd.com/ ">heart of vegas free slots</a> | [url=https://onlinecasinodd.com/]cashman casino slots[/url] [url=https://onlinecasinodd.com/]free casino games slotomania[/url]

no.25872 bkziucreecewexumma 62.210.202.55 2018-11-21 10:11

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

no.25871 wzmfrcreecewexumma 195.154.170.194 2018-11-21 10:09

slots lounge <a href="https://onlinecasinoflow.com/">casino games online</a> | <a href=" https://onlinecasinoflow.com/ ">best online casino</a> | [url=https://onlinecasinoflow.com/]free vegas casino games[/url] [url=https://onlinecasinoflow.com/]no deposit casino[/url]

no.25870 nfurpcreecewexumma 62.210.202.55 2018-11-21 10:07

casino games slots free <a href="https://onlinecasinospark.com/">simslots free slots</a> | <a href=" https://onlinecasinospark.com/ ">play free vegas casino games</a> | [url=https://onlinecasinospark.com/]vegas world slots[/url] [url=https://onlinecasinospark.com/]real money casino[/url]

no.25869 yjboxcreecewexumma 62.210.202.48 2018-11-21 10:00

hyper casinos <a href="https://onlinecasino888.us.org/">lady luck</a> | <a href=" https://onlinecasino888.us.org/ ">free online slots</a> | [url=https://onlinecasino888.us.org/]slots of vegas[/url] [url=https://onlinecasino888.us.org/]play slots online[/url]

no.25868 qfcmecreecewexumma 62.210.202.48 2018-11-21 09:55

firekeepers casino <a href="https://onlinecasino888.us.org/">play casino</a> | <a href=" https://onlinecasino888.us.org/ ">online casino real money</a> | [url=https://onlinecasino888.us.org/]free slots games[/url] [url=https://onlinecasino888.us.org/]free casino games sun moon[/url]

no.25867 tpfuvcreecewexumma 62.210.202.176 2018-11-21 09:53

online casino bonus <a href="https://casinorealmoney.us/">play online casino</a> | <a href=" https://casinorealmoney.us/ ">casino slots</a> | [url=https://casinorealmoney.us/]online casino bonus[/url] [url=https://casinorealmoney.us/]casino online[/url]

no.25866 zxdxggvw 5.188.210.35 2018-11-21 09:53

<a href=" https://synthroid.ooo/ ">cheap synthroid</a> - synthroid coupon difference between levothyroxine & synthroid - [url=https://synthroid.ooo/]l-thyroxine synthroid[/url] https://synthroid.ooo/

no.25865 zhubbcreecewexumma 62.210.202.55 2018-11-21 09:50

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

no.25864 ikxfwcreecewexumma 62.210.202.55 2018-11-21 09:50

slots of vegas <a href="https://onlinecasinospark.com/">free online casino</a> | <a href=" https://onlinecasinospark.com/ ">chumba casino</a> | [url=https://onlinecasinospark.com/]free casino games no download[/url] [url=https://onlinecasinospark.com/]slotomania free slots[/url]

no.25863 gkjptrue 5.188.210.35 2018-11-21 09:49

<a href=" https://accutane.ooo/ ">accutane long term side effects</a> - dr oz and accutane buy accutane, [url=https://accutane.ooo/]accutane dosage[/url] https://accutane.ooo/

发表评论:

邮箱: