好用的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.109328 ayrexBavaantack 5.188.210.76 2019-08-22 01:15

rng [url=https://cbdhempoil20.com/#]cbd oil at walmart[/url] azh [url=https://cbdhempoil20.com/#]cbd oil[/url]

no.109327 rrpskBavaantack 5.188.210.73 2019-08-22 01:11

ycv [url=https://onlinecasinoplay777.us/#]free casino games[/url]

no.109326 hxzidBavaantack 5.188.210.80 2019-08-22 01:10

uvf [url=https://hempcbd10.com/#]hemp oil cbd[/url]

no.109324 elyxxBavaantack 5.188.210.77 2019-08-22 01:06

bcd [url=https://cbdhempoil30.com/#]cbd oil[/url] rdz [url=https://cbdhempoil30.com/#]healthy hemp oil[/url]

no.109323 pujvyBavaantack 5.188.210.71 2019-08-22 00:51

zwg [url=https://onlinecasinoleo.us/#]casino play[/url] dde [url=https://onlinecasinoleo.us/#]free casino games[/url]

no.109322 fdpzmBavaantack 5.188.210.74 2019-08-22 00:50

dpi [url=https://onlinecasinons.us/#]online casino games[/url]

no.109321 tbinfBavaantack 5.188.210.76 2019-08-22 00:29

ycy [url=https://cbdhempoil20.com/#]plus cbd oil[/url]

no.109320 uydjiBavaantack 5.188.210.75 2019-08-22 00:18

ves [url=https://cbdhempoil10.com/#]strongest cbd oil for sale[/url]

no.109317 tusvfBavaantack 5.188.210.71 2019-08-22 00:04

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

no.109316 ttgwxBavaantack 5.188.210.77 2019-08-21 23:55

jes [url=https://cbdhempoil30.com/#]optivida hemp oil[/url]

no.109315 yuftdBavaantack 5.188.210.80 2019-08-21 23:53

oao [url=https://hempcbd10.com/#]hemp oil for dogs[/url] xvq [url=https://hempcbd10.com/#]walgreens cbd oil[/url]

no.109314 htmqqBavaantack 5.188.210.74 2019-08-21 23:51

cys [url=https://onlinecasinons.us/#]casino online[/url] isa [url=https://onlinecasinons.us/#]casino online[/url]

no.109313 bwpgnBavaantack 5.188.210.73 2019-08-21 23:49

jjz [url=https://onlinecasinoplay777.us/#]free casino games online[/url]

no.109312 gtvjwBavaantack 5.188.210.78 2019-08-21 23:49

htn [url=https://hempcbd2020.com/#]strongest cbd oil for sale[/url] zrp [url=https://hempcbd2020.com/#]zilis cbd oil[/url]

no.109311 hwnbaBavaantack 5.188.210.78 2019-08-21 23:48

bpg [url=https://hempcbd2020.com/#]hemp oil for dogs[/url]

no.109309 whqhqBavaantack 5.188.210.72 2019-08-21 23:23

foq [url=https://onlinecasinofan.us/#]casino play[/url]

no.109308 eqltgBavaantack 5.188.210.80 2019-08-21 23:22

vpo [url=https://hempcbd10.com/#]side effects of hemp oil[/url]

no.109307 fknbdBavaantack 5.188.210.73 2019-08-21 23:12

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

no.109306 rahydBavaantack 5.188.210.76 2019-08-21 23:09

bxf [url=https://cbdhempoil20.com/#]organic hemp oil[/url]

no.109305 kbjwyBavaantack 5.188.210.72 2019-08-21 23:09

kip [url=https://onlinecasinofan.us/#]free casino games[/url] eas [url=https://onlinecasinofan.us/#]casino bonus codes[/url]

no.109304 gxujaBavaantack 5.188.210.74 2019-08-21 23:05

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

no.109303 qqterBavaantack 5.188.210.75 2019-08-21 23:02

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

no.109302 qzgalBavaantack 5.188.210.77 2019-08-21 22:57

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

no.109301 dzwpsBavaantack 5.188.210.72 2019-08-21 22:29

vud [url=https://onlinecasinofan.us/#]casino online[/url]

no.109300 heaswBavaantack 5.188.210.76 2019-08-21 22:23

huw [url=https://cbdhempoil20.com/#]hemp oil side effects[/url] vdw [url=https://cbdhempoil20.com/#]what is cbd oil[/url]

no.109299 hqbkmBavaantack 5.188.210.80 2019-08-21 22:22

jdk [url=https://hempcbd10.com/#]hemp oil store[/url] ozo [url=https://hempcbd10.com/#]where to buy cbd oil[/url]

no.109298 ylksnBavaantack 5.188.210.77 2019-08-21 22:08

wub [url=https://cbdhempoil30.com/#]cbd oil at walmart[/url] xuy [url=https://cbdhempoil30.com/#]buy cbd new york[/url]

no.109297 kzanbBavaantack 5.188.210.72 2019-08-21 22:07

zzc [url=https://onlinecasinofan.us/#]real money casino[/url] luc [url=https://onlinecasinofan.us/#]best online casinos[/url]

no.109296 hhqgnBavaantack 5.188.210.71 2019-08-21 22:02

eie [url=https://onlinecasinoleo.us/#]no deposit casino[/url] lgb [url=https://onlinecasinoleo.us/#]free casino games online[/url]

no.109294 vzactBavaantack 5.188.210.75 2019-08-21 21:48

rom [url=https://cbdhempoil10.com/#]cbd oil online[/url] pxi [url=https://cbdhempoil10.com/#]benefits of hemp oil[/url]

no.109293 wuljdBavaantack 5.188.210.78 2019-08-21 21:45

wnl [url=https://hempcbd2020.com/#]buy cbd oil[/url]

no.109292 jsyrzBavaantack 5.188.210.80 2019-08-21 21:34

nfj [url=https://hempcbd10.com/#]best cbd oil for pain[/url]

no.109291 bockhBavaantack 5.188.210.71 2019-08-21 21:21

pjt [url=https://onlinecasinoleo.us/#]best online casinos[/url]

no.109289 xqjrsBavaantack 5.188.210.73 2019-08-21 21:17

kxy [url=https://onlinecasinoplay777.us/#]free casino games online[/url]

no.109287 kgurgBavaantack 5.188.210.74 2019-08-21 21:02

cvm [url=https://onlinecasinons.us/#]casino slots[/url] xkt [url=https://onlinecasinons.us/#]no deposit casino[/url]

no.109286 bisqtBavaantack 5.188.210.77 2019-08-21 20:56

fev [url=https://cbdhempoil30.com/#]where to buy cbd oil[/url] exi [url=https://cbdhempoil30.com/#]what is cbd oil[/url]

no.109285 hjpcrBavaantack 5.188.210.75 2019-08-21 20:44

uzv [url=https://cbdhempoil10.com/#]side effects of hemp oil[/url] yzz [url=https://cbdhempoil10.com/#]charlottes web cbd oil[/url]

no.109284 xjzysBavaantack 5.188.210.76 2019-08-21 20:35

rhe [url=https://cbdhempoil20.com/#]cbd oil florida[/url] olo [url=https://cbdhempoil20.com/#]strongest cbd oil for sale[/url]

no.109283 xafnkBavaantack 5.188.210.80 2019-08-21 20:11

ofa [url=https://hempcbd10.com/#]what is hemp oil[/url] csc [url=https://hempcbd10.com/#]plus cbd oil[/url]

no.109282 bdebdBavaantack 5.188.210.71 2019-08-21 20:08

xif [url=https://onlinecasinoleo.us/#]casino game[/url] yhx [url=https://onlinecasinoleo.us/#]big fish casino[/url]

no.109281 jpxmsBavaantack 5.188.210.74 2019-08-21 20:00

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

no.109280 kmqolBavaantack 5.188.210.73 2019-08-21 19:45

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

no.109279 qczelBavaantack 5.188.210.80 2019-08-21 19:42

ayq [url=https://hempcbd10.com/#]hemp oil for dogs[/url]

no.109278 iorveBavaantack 5.188.210.77 2019-08-21 19:42

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

no.109277 yaqveBavaantack 5.188.210.78 2019-08-21 19:36

fbj [url=https://hempcbd2020.com/#]cbd oil cost[/url] yun [url=https://hempcbd2020.com/#]cbd oil for sale walmart[/url]

no.109276 dvxouBavaantack 5.188.210.78 2019-08-21 19:36

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

no.109274 zgzweBavaantack 5.188.210.78 2019-08-21 19:25

sum [url=https://hempcbd2020.com/#]buy cbd usa[/url] hos [url=https://hempcbd2020.com/#]hemp oil side effects[/url]

no.109273 uexfcBavaantack 5.188.210.75 2019-08-21 19:19

ymh [url=https://cbdhempoil10.com/#]best hemp oil[/url]

no.109272 ewhhaBavaantack 5.188.210.73 2019-08-21 19:19

psc [url=https://onlinecasinoplay777.us/#]real money casino[/url] qrx [url=https://onlinecasinoplay777.us/#]casino play[/url]

no.109271 tewecBavaantack 5.188.210.71 2019-08-21 19:18

hin [url=https://onlinecasinoleo.us/#]no deposit casino[/url]

发表评论:

邮箱: