好用的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.89403 hxbhpBavaantack 5.188.210.72 2019-06-25 12:38

gyz [url=https://onlineslots888.us.org/#]free coins slotomania[/url]

no.89402 idgxwBavaantack 5.188.210.74 2019-06-25 12:34

pbj [url=https://online-slots.us.org/#]online casino gambling[/url]

no.89401 cyhklBavaantack 5.188.210.76 2019-06-25 12:34

qbh [url=https://cbdoilhemp24.com/#]hemp oil vs cbd oil[/url]

no.89400 jicjnBavaantack 5.188.210.76 2019-06-25 12:34

gma [url=https://cbdoilhemp24.com/#]cbd[/url]

no.89399 yiqjjBavaantack 5.188.210.76 2019-06-25 12:34

tft [url=https://cbdoilhemp24.com/#]buy cbd usa[/url]

no.89398 emfjeBavaantack 5.188.210.76 2019-06-25 12:34

nma [url=https://cbdoilhemp24.com/#]cbd oil for sale walmart[/url]

no.89397 fkfrpBavaantack 5.188.210.80 2019-06-25 12:21

dnf [url=https://hempcbd2019.com/#]cbd oil dosage[/url]

no.89396 viicyBavaantack 5.188.210.80 2019-06-25 12:21

dag [url=https://hempcbd2019.com/#]buy cbd new york[/url]

no.89395 lgedjBavaantack 5.188.210.78 2019-06-25 12:19

mrr [url=https://hempcbdoilplus.com/#]buy cbd new york[/url]

no.89394 jrlziBavaantack 5.188.210.75 2019-06-25 12:18

hvy [url=https://cbdoilinn.com/#]buy cbd[/url]

no.89393 ntfdqBavaantack 5.188.210.75 2019-06-25 12:09

qcx [url=https://cbdoilinn.com/#]what is cbd oil[/url]

no.89392 sqlrwBavaantack 5.188.210.73 2019-06-25 12:08

xei [url=https://888casino.us.org/#]high 5 casino[/url]

no.89391 dmpbmBavaantack 5.188.210.78 2019-06-25 12:07

jjk [url=https://hempcbdoilplus.com/#]cbd vs hemp oil[/url]

no.89389 ciglbBavaantack 5.188.210.72 2019-06-25 11:55

pxn [url=https://onlineslots888.us.org/#]vegas slots online[/url]

no.89388 edxrfBavaantack 5.188.210.77 2019-06-25 11:25

qww [url=https://cboilsite.com/#]buy cbd online[/url]

no.89386 zncmwBavaantack 5.188.210.73 2019-06-25 11:22

ebq [url=https://888casino.us.org/#]free slots casino games[/url]

no.89385 uvdnfBavaantack 5.188.210.75 2019-06-25 11:17

cbe [url=https://cbdoilinn.com/#]full spectrum hemp oil[/url]

no.89384 dvqleBavaantack 5.188.210.74 2019-06-25 11:14

soq [url=https://online-slots.us.org/#]casinos near me[/url]

no.89383 ycrsuBavaantack 5.188.210.74 2019-06-25 11:14

vde [url=https://online-slots.us.org/#]sugarhouse online casino[/url]

no.89382 pejhcBavaantack 5.188.210.78 2019-06-25 11:12

yks [url=https://hempcbdoilplus.com/#]cbd oil online[/url]

no.89381 zbnpuBavaantack 5.188.210.74 2019-06-25 11:09

nrh [url=https://online-slots.us.org/#]caesars free slots[/url]

no.89380 tjpidBavaantack 5.188.210.73 2019-06-25 11:07

ymx [url=https://888casino.us.org/#]cafe casino online[/url]

no.89379 akgbnBavaantack 5.188.210.78 2019-06-25 11:05

ezn [url=https://hempcbdoilplus.com/#]nutiva hemp oil[/url]

no.89378 vzcczBavaantack 5.188.210.72 2019-06-25 10:56

kgt [url=https://onlineslots888.us.org/#]penny slots free online[/url]

no.89377 sdoktBavaantack 5.188.210.80 2019-06-25 10:55

bcy [url=https://hempcbd2019.com/#]cbd vs hemp oil[/url]

no.89376 uxssbBavaantack 5.188.210.80 2019-06-25 10:55

pqj [url=https://hempcbd2019.com/#]side effects of hemp oil[/url]

no.89375 diquaBavaantack 5.188.210.76 2019-06-25 10:38

diw [url=https://cbdoilhemp24.com/#]best hemp oil[/url]

no.89374 bceurBavaantack 5.188.210.75 2019-06-25 10:38

lpo [url=https://cbdoilinn.com/#]benefits of hemp oil[/url]

no.89373 qvocvBavaantack 5.188.210.80 2019-06-25 10:38

ujq [url=https://hempcbd2019.com/#]hemp oil side effects[/url]

no.89372 rhqvgBavaantack 5.188.210.80 2019-06-25 10:38

kya [url=https://hempcbd2019.com/#]cbd oil canada online[/url]

no.89371 yuqtnBavaantack 5.188.210.76 2019-06-25 10:37

nfv [url=https://cbdoilhemp24.com/#]benefits of cbd oil[/url]

no.89370 icwiyBavaantack 5.188.210.76 2019-06-25 10:37

fwo [url=https://cbdoilhemp24.com/#]buy cbd oil[/url]

no.89369 kokiaBavaantack 5.188.210.76 2019-06-25 10:37

dbx [url=https://cbdoilhemp24.com/#]zilis cbd oil[/url]

no.89368 hijjkBavaantack 5.188.210.72 2019-06-25 10:25

uuk [url=https://onlineslots888.us.org/#]gambling sites[/url]

no.89367 ayfxvBavaantack 5.188.210.78 2019-06-25 10:23

blc [url=https://hempcbdoilplus.com/#]green roads cbd oil[/url]

no.89366 yejlwBavaantack 5.188.210.72 2019-06-25 10:20

jvw [url=https://onlineslots888.us.org/#]casino blackjack[/url]

no.89365 plyhoBavaantack 5.188.210.73 2019-06-25 10:13

xhe [url=https://888casino.us.org/#]play slots online[/url]

no.89364 gljksBavaantack 5.188.210.74 2019-06-25 10:00

ens [url=https://online-slots.us.org/#]free slots casino games[/url]

no.89361 dfvzuBavaantack 5.188.210.72 2019-06-25 09:40

jyk [url=https://onlineslots888.us.org/#]high 5 casino[/url]

no.89360 cyvnnBavaantack 5.188.210.75 2019-06-25 09:37

yij [url=https://cbdoilinn.com/#]optivida hemp oil[/url]

no.89359 ptfteBavaantack 5.188.210.75 2019-06-25 09:30

myo [url=https://cbdoilinn.com/#]zilis cbd oil[/url]

no.89358 srxbvBavaantack 5.188.210.73 2019-06-25 09:30

uqq [url=https://888casino.us.org/#]house of fun slots[/url]

no.89357 ndstqBavaantack 5.188.210.80 2019-06-25 09:22

hep [url=https://hempcbd2019.com/#]hemp oil[/url]

no.89356 ngbpvBavaantack 5.188.210.80 2019-06-25 09:22

mcj [url=https://hempcbd2019.com/#]hemp oil extract[/url]

no.89355 dfnmeBavaantack 5.188.210.78 2019-06-25 09:22

vrh [url=https://hempcbdoilplus.com/#]hemp oil store[/url]

no.89354 pdocnBavaantack 5.188.210.77 2019-06-25 09:15

ksp [url=https://cboilsite.com/#]plus cbd oil[/url]

no.89353 duqkkBavaantack 5.188.210.73 2019-06-25 09:12

kls [url=https://888casino.us.org/#]pala casino online[/url]

no.89352 bumlrBavaantack 5.188.210.78 2019-06-25 09:12

bly [url=https://hempcbdoilplus.com/#]benefits of cbd oil[/url]

no.89351 bqpbqBavaantack 5.188.210.78 2019-06-25 09:12

gqf [url=https://hempcbdoilplus.com/#]hemp oil extract[/url]

no.89350 yvwxwBavaantack 5.188.210.80 2019-06-25 09:03

dlx [url=https://hempcbd2019.com/#]cbd oil for dogs[/url]

发表评论:

邮箱: