好用的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.57985 awgtgBavaantack 5.188.210.68 2019-03-22 11:09

hollywood casino online slots <a href="https://onlinecasinoslotster.us/#">gold fish casino slots</a> | [url=https://onlinecasinoslotster.us/#]free full casino games download[/url] | https://onlinecasinoslotster.us/#

no.57984 jrgkjBavaantack 5.188.210.70 2019-03-22 11:07

casino slots free games <a href="https://onlinecasinolime.us/#">free casino slots bonus games</a> | [url=https://onlinecasinolime.us/#]free slot machine games[/url] | https://onlinecasinolime.us/#

no.57983 hzyjuBavaantack 5.188.210.64 2019-03-22 11:06

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

no.57981 yxhtmBavaantack 5.188.210.67 2019-03-22 10:51

free games online no download <a href="https://onlinecasinoslotsix.us/#">lady luck casino free games</a>

no.57980 begdrBavaantack 5.188.210.66 2019-03-22 10:26

online casino gambling <a href="https://onlinecasinoplay.us.org/#">online casino games</a> | [url=https://onlinecasinoplay.us.org/#]high five casino slots[/url] | https://onlinecasinoplay.us.org/#

no.57979 dykrlBavaantack 5.188.210.68 2019-03-22 10:12

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

no.57978 txtaiBavaantack 134.119.182.126 2019-03-22 10:08

abwvee [url=https://onlinecasinohub.us/#]online casino[/url]

no.57977 lklurBavaantack 5.188.210.60 2019-03-22 10:07

online casino no deposit free welcome bonus <a href="https://casinorealmoneyplay.us/#">casinos near me</a> | [url=https://casinorealmoneyplay.us/#]free penny slots no download[/url] | https://casinorealmoneyplay.us/#

no.57976 zfcudBavaantack 5.188.210.62 2019-03-22 09:56

gsn casino slots [url=https://casinorealmoneynow.us/#]online casino reviews[/url]

no.57975 hexlkBavaantack 5.188.210.62 2019-03-22 09:49

hvavxt [url=https://casinorealmoneynow.us/#]real casino games slots free[/url]

no.57974 gvextBavaantack 5.188.210.64 2019-03-22 09:41

online casino reviews <a href="https://onlinecasinoslotsy.us/#">real casino games slots free</a> | [url=https://onlinecasinoslotsy.us/#]prairie meadows casino[/url] | https://onlinecasinoslotsy.us/#

no.57973 szhswBavaantack 5.188.210.62 2019-03-22 09:40

casino game <a href="https://casinorealmoneynow.us/#">casinos near my location</a>

no.57971 aspvwBavaantack 5.188.210.70 2019-03-22 09:29

real casino games slots free <a href="https://onlinecasinolime.us/#">200 free slot games</a>

no.57970 xrmrzBavaantack 5.188.210.66 2019-03-22 09:27

winstar world casino [url=https://onlinecasinoplay.us.org/#]online casino real money[/url]

no.57969 kapylBavaantack 5.188.210.68 2019-03-22 09:25

free casino games [url=https://onlinecasinoslotster.us/#]play slots for real money[/url]

no.57968 wmwogBavaantack 5.188.210.60 2019-03-22 09:06

free slots online [url=https://casinorealmoneyplay.us/#]100 most popular free slots[/url]

no.57967 pjpvkBavaantack 5.188.210.67 2019-03-22 08:59

free penny slots with bonus spins [url=https://onlinecasinoslotsix.us/#]slots games[/url]

no.57966 gbwjwBavaantack 5.188.210.64 2019-03-22 08:50

free casino slots games [url=https://onlinecasinoslotsy.us/#]lady luck casino vicksburg[/url]

no.57965 asjzxBavaantack 5.188.210.66 2019-03-22 08:28

slots games free <a href="https://onlinecasinoplay.us.org/#">free casino games no download</a>

no.57963 xifumBavaantack 5.188.210.60 2019-03-22 07:59

gsn casino <a href="https://casinorealmoneyplay.us/#">win free money no deposit</a>

no.57962 uybkuBavaantack 5.188.210.70 2019-03-22 07:58

heart of vegas casino game <a href="https://onlinecasinolime.us/#">free casino games slotomania</a>

no.57960 sitctBavaantack 5.188.210.67 2019-03-22 07:39

casinos near me <a href="https://onlinecasinoslotsix.us/#">play online casino games</a> | [url=https://onlinecasinoslotsix.us/#]caesars slots[/url] | https://onlinecasinoslotsix.us/#

no.57959 olwqeBavaantack 5.188.210.68 2019-03-22 07:25

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

no.57958 vbtmhBavaantack 134.119.182.126 2019-03-22 07:19

kklclg [url=https://onlinecasinohub.us/#]play online casino[/url]

no.57957 pdcbvBavaantack 5.188.210.69 2019-03-22 07:14

coflic [url=https://onlinecasinogamess24.us/#]caesars casino online[/url]

no.57956 bwjaqBavaantack 5.188.210.64 2019-03-22 07:11

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

no.57955 kyjzmBavaantack 5.188.210.70 2019-03-22 07:09

slot machine free [url=https://onlinecasinolime.us/#]bovada casino[/url]

no.57954 hgfzuBavaantack 5.188.210.70 2019-03-22 06:59

free online slots vegas world <a href="https://onlinecasinolime.us/#">caesars slots</a> | [url=https://onlinecasinolime.us/#]rock n cash casino slots[/url] | https://onlinecasinolime.us/#

no.57953 bsbeoBavaantack 5.188.210.60 2019-03-22 06:57

slots games vegas world <a href="https://casinorealmoneyplay.us/#">rock n cash casino slots</a>

no.57952 ibsndBavaantack 5.188.210.67 2019-03-22 06:52

slotomania slot machines <a href="https://onlinecasinoslotsix.us/#">hollywood casino free slots online</a>

no.57951 nroprBavaantack 5.188.210.66 2019-03-22 06:42

online gambling casino <a href="https://onlinecasinoplay.us.org/#">no deposit casino</a> | [url=https://onlinecasinoplay.us.org/#]vegas world slots[/url] | https://onlinecasinoplay.us.org/#

no.57950 yorvjBavaantack 5.188.210.68 2019-03-22 06:22

free slot play <a href="https://onlinecasinoslotster.us/#">slotomania on facebook</a> | [url=https://onlinecasinoslotster.us/#]new no deposit casinos accepting us players[/url] | https://onlinecasinoslotster.us/#

no.57949 vcuevBavaantack 5.188.210.62 2019-03-22 06:21

mirrorball slots <a href="https://casinorealmoneynow.us/#">best time to play slot machines</a> | [url=https://casinorealmoneynow.us/#]free slots no download no registration[/url] | https://casinorealmoneynow.us/#

no.57948 kscijBavaantack 5.188.210.64 2019-03-22 06:15

free full casino games download <a href="https://onlinecasinoslotsy.us/#">free casino slots with bonuses</a>

no.57947 zubsmBavaantack 5.188.210.67 2019-03-22 05:48

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

no.57946 bsltfBavaantack 5.188.210.60 2019-03-22 05:41

free slots games <a href="https://casinorealmoneyplay.us/#">heart of vegas casino game</a> | [url=https://casinorealmoneyplay.us/#]slotomania slot machines[/url] | https://casinorealmoneyplay.us/#

no.57945 vtrkvBavaantack 5.188.210.68 2019-03-22 05:29

online casino bonus <a href="https://onlinecasinoslotster.us/#">real money casino</a>

no.57944 lfiniBavaantack 5.188.210.66 2019-03-22 05:27

borgata online casino [url=https://onlinecasinoplay.us.org/#]pechanga casino[/url]

no.57943 cbxswBavaantack 5.188.210.70 2019-03-22 05:26

brian christopher slots <a href="https://onlinecasinolime.us/#">300 free slots no download no registration</a>

no.57942 krdjhBavaantack 5.188.210.62 2019-03-22 05:23

jrswoj [url=https://casinorealmoneynow.us/#]real casino[/url]

no.57941 zljsrBavaantack 5.188.210.62 2019-03-22 05:05

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

no.57940 gyqjiBavaantack 5.188.210.64 2019-03-22 04:53

free online casino slots <a href="https://onlinecasinoslotsy.us/#">cafe casino online</a> | [url=https://onlinecasinoslotsy.us/#]doubledown casino[/url] | https://onlinecasinoslotsy.us/#

no.57939 ndmkbBavaantack 5.188.210.68 2019-03-22 04:40

online gambling for real money [url=https://onlinecasinoslotster.us/#]free slot play no download[/url]

no.57938 xivzgBavaantack 5.188.210.60 2019-03-22 04:39

cashman casino slots [url=https://casinorealmoneyplay.us/#]casinos near me[/url]

no.57937 hpdyyBavaantack 5.188.210.66 2019-03-22 04:18

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

no.57935 otatvBavaantack 5.188.210.64 2019-03-22 04:04

vegas casino free slot games [url=https://onlinecasinoslotsy.us/#]infinity slots[/url]

no.57934 aulypBavaantack 5.188.210.67 2019-03-22 03:54

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

no.57933 eyzjwBavaantack 5.188.210.70 2019-03-22 03:45

play online casino games <a href="https://onlinecasinolime.us/#">cashman casino slots</a>

no.57932 ksunoBavaantack 5.188.210.60 2019-03-22 03:27

best free slots vegas world <a href="https://casinorealmoneyplay.us/#">200 free slot games</a>

no.57929 kuzigBavaantack 5.188.210.70 2019-03-22 02:50

free casino games slotomania [url=https://onlinecasinolime.us/#]play online casino games[/url]

发表评论:

邮箱: