好用的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.109430 aowacBavaantack 5.188.210.71 2019-08-22 12:20

pvo [url=https://onlinecasinoleo.us/#]free casino games online[/url]

no.109429 bvauoBavaantack 5.188.210.80 2019-08-22 12:20

jcu [url=https://hempcbd10.com/#]hemp oil arthritis[/url] jvt [url=https://hempcbd10.com/#]cbd hemp oil[/url]

no.109428 lthxyBavaantack 5.188.210.77 2019-08-22 12:13

zvw [url=https://cbdhempoil30.com/#]where to buy cbd oil[/url]

no.109427 lbztiBavaantack 5.188.210.78 2019-08-22 11:51

akj [url=https://hempcbd2020.com/#]cbd hemp oil[/url]

no.109426 luyiwBavaantack 5.188.210.78 2019-08-22 11:51

ukw [url=https://hempcbd2020.com/#]hemp oil cbd[/url] ejj [url=https://hempcbd2020.com/#]hemp oil extract[/url]

no.109425 gbmdkBavaantack 5.188.210.71 2019-08-22 11:48

hab [url=https://onlinecasinoleo.us/#]big fish casino[/url] qbs [url=https://onlinecasinoleo.us/#]play online casino[/url]

no.109424 dddstBavaantack 5.188.210.76 2019-08-22 11:47

oqs [url=https://cbdhempoil20.com/#]cbd oil prices[/url] hjs [url=https://cbdhempoil20.com/#]strongest cbd oil for sale[/url]

no.109423 szbcnBavaantack 5.188.210.72 2019-08-22 11:46

kml [url=https://onlinecasinofan.us/#]casino real money[/url]

no.109422 gijikBavaantack 5.188.210.72 2019-08-22 11:40

ddx [url=https://onlinecasinofan.us/#]play online casino[/url] gpn [url=https://onlinecasinofan.us/#]free casino[/url]

no.109421 rkbcdBavaantack 5.188.210.80 2019-08-22 11:26

hhp [url=https://hempcbd10.com/#]pure cbd oil[/url]

no.109420 hcennBavaantack 5.188.210.77 2019-08-22 11:22

biw [url=https://cbdhempoil30.com/#]cbd oil for sale walmart[/url]

no.109419 dzugvBavaantack 5.188.210.75 2019-08-22 11:22

lhk [url=https://cbdhempoil10.com/#]hemp oil benefits[/url] xgk [url=https://cbdhempoil10.com/#]zilis cbd oil[/url]

no.109418 bbpafBavaantack 5.188.210.73 2019-08-22 11:17

dqm [url=https://onlinecasinoplay777.us/#]casino online slots[/url]

no.109417 joskrBavaantack 5.188.210.78 2019-08-22 11:17

eoo [url=https://hempcbd2020.com/#]cbd pure hemp oil[/url] yap [url=https://hempcbd2020.com/#]cbd oil for pain[/url]

no.109416 yremnBavaantack 5.188.210.74 2019-08-22 11:02

alt [url=https://onlinecasinons.us/#]free casino games[/url] voh [url=https://onlinecasinons.us/#]casino bonus codes[/url]

no.109414 bivolBavaantack 5.188.210.76 2019-08-22 10:43

kiv [url=https://cbdhempoil20.com/#]buy cbd oil[/url] dyu [url=https://cbdhempoil20.com/#]benefits of hemp oil for humans[/url]

no.109413 taikvBavaantack 5.188.210.72 2019-08-22 10:33

dfp [url=https://onlinecasinofan.us/#]free casino games[/url]

no.109412 fkfhdBavaantack 5.188.210.72 2019-08-22 10:31

ktv [url=https://onlinecasinofan.us/#]online casino real money[/url] pvz [url=https://onlinecasinofan.us/#]casino real money[/url]

no.109411 wfkjdBavaantack 5.188.210.77 2019-08-22 10:28

ivx [url=https://cbdhempoil30.com/#]side effects of hemp oil[/url] vqn [url=https://cbdhempoil30.com/#]hemp oil vs cbd oil[/url]

no.109410 sslhjBavaantack 5.188.210.73 2019-08-22 10:25

nkv [url=https://onlinecasinoplay777.us/#]real money casino[/url] kdo [url=https://onlinecasinoplay777.us/#]casino play[/url]

no.109409 iobifBavaantack 5.188.210.80 2019-08-22 10:19

lbt [url=https://hempcbd10.com/#]cbd oil canada[/url]

no.109408 cyhezBavaantack 5.188.210.80 2019-08-22 10:18

ydg [url=https://hempcbd10.com/#]hemp oil for pain[/url] rue [url=https://hempcbd10.com/#]buy cbd online[/url]

no.109407 ikupmBavaantack 5.188.210.74 2019-08-22 10:04

uqs [url=https://onlinecasinons.us/#]casino slots[/url]

no.109406 uxqmxBavaantack 5.188.210.76 2019-08-22 10:02

mxj [url=https://cbdhempoil20.com/#]optivida hemp oil[/url]

no.109405 irfqpBavaantack 5.188.210.75 2019-08-22 10:01

lse [url=https://cbdhempoil10.com/#]buy cbd usa[/url]

no.109404 avrvlBavaantack 5.188.210.71 2019-08-22 10:01

xyo [url=https://onlinecasinoleo.us/#]play casino[/url] ggj [url=https://onlinecasinoleo.us/#]online casino real money[/url]

no.109402 vhkueBavaantack 5.188.210.78 2019-08-22 09:43

yhb [url=https://hempcbd2020.com/#]cbd vs hemp oil[/url]

no.109401 vrajjBavaantack 5.188.210.71 2019-08-22 09:16

utg [url=https://onlinecasinoleo.us/#]free casino games online[/url]

no.109399 vogthBavaantack 5.188.210.77 2019-08-22 09:15

qos [url=https://cbdhempoil30.com/#]cbd vs hemp oil[/url] pfl [url=https://cbdhempoil30.com/#]cbd oil uk[/url]

no.109398 dvkjuBavaantack 5.188.210.74 2019-08-22 09:02

xlv [url=https://onlinecasinons.us/#]real money casino[/url] aih [url=https://onlinecasinons.us/#]big fish casino[/url]

no.109397 xuqcvBavaantack 5.188.210.80 2019-08-22 08:49

sod [url=https://hempcbd10.com/#]benefits of hemp oil for humans[/url] gox [url=https://hempcbd10.com/#]cbd oil cost[/url]

no.109396 appfaBavaantack 5.188.210.75 2019-08-22 08:39

icg [url=https://cbdhempoil10.com/#]cbd oil canada online[/url]

no.109395 hxucsBavaantack 5.188.210.76 2019-08-22 08:38

pug [url=https://cbdhempoil20.com/#]cbd oil cost[/url]

no.109393 upcnwBavaantack 5.188.210.74 2019-08-22 08:22

dih [url=https://onlinecasinons.us/#]free casino[/url]

no.109392 kcdbbBavaantack 5.188.210.77 2019-08-22 08:05

qvx [url=https://cbdhempoil30.com/#]hemp oil arthritis[/url]

no.109390 wptrsBavaantack 5.188.210.80 2019-08-22 07:57

uhq [url=https://hempcbd10.com/#]benefits of hemp oil for humans[/url]

no.109389 xflhfBavaantack 5.188.210.78 2019-08-22 07:51

uia [url=https://hempcbd2020.com/#]optivida hemp oil[/url]

no.109388 gfpxvBavaantack 5.188.210.78 2019-08-22 07:51

mno [url=https://hempcbd2020.com/#]cbd oil stores near me[/url] xkh [url=https://hempcbd2020.com/#]nutiva hemp oil[/url]

no.109387 xflmuBavaantack 5.188.210.72 2019-08-22 07:40

vzh [url=https://onlinecasinofan.us/#]casino games[/url]

no.109386 sphkaBavaantack 5.188.210.75 2019-08-22 07:33

ghb [url=https://cbdhempoil10.com/#]nutiva hemp oil[/url] ddm [url=https://cbdhempoil10.com/#]cbd oil price[/url]

no.109385 hqfqxBavaantack 5.188.210.72 2019-08-22 07:32

gyg [url=https://onlinecasinofan.us/#]play casino[/url] snv [url=https://onlinecasinofan.us/#]online casino games[/url]

no.109384 ztrzuBavaantack 5.188.210.73 2019-08-22 07:28

elm [url=https://onlinecasinoplay777.us/#]play online casino[/url]

no.109383 akaxeBavaantack 5.188.210.78 2019-08-22 07:23

dga [url=https://hempcbd2020.com/#]cbd oil price[/url] qpz [url=https://hempcbd2020.com/#]cbd oil benefits[/url]

no.109382 poktfBavaantack 5.188.210.76 2019-08-22 07:19

ycx [url=https://cbdhempoil20.com/#]hemp oil benefits dr oz[/url] nbp [url=https://cbdhempoil20.com/#]cbd oil dosage[/url]

no.109381 sejriBavaantack 5.188.210.71 2019-08-22 07:18

wrl [url=https://onlinecasinoleo.us/#]free casino games online[/url] pcl [url=https://onlinecasinoleo.us/#]play online casino[/url]

no.109380 pmeefBavaantack 5.188.210.77 2019-08-22 07:13

jxe [url=https://cbdhempoil30.com/#]cbd oil cost[/url]

no.109378 qctwqBavaantack 5.188.210.80 2019-08-22 06:50

vwl [url=https://hempcbd10.com/#]optivida hemp oil[/url] shm [url=https://hempcbd10.com/#]cbd oil florida[/url]

no.109377 hggvjBavaantack 5.188.210.71 2019-08-22 06:43

bbc [url=https://onlinecasinoleo.us/#]casino real money[/url]

no.109376 fqognBavaantack 5.188.210.73 2019-08-22 06:41

byl [url=https://onlinecasinoplay777.us/#]play online casino[/url] ulp [url=https://onlinecasinoplay777.us/#]online casino games[/url]

no.109375 wiyutBavaantack 5.188.210.72 2019-08-22 06:35

iwi [url=https://onlinecasinofan.us/#]casino real money[/url]

发表评论:

邮箱: