好用的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.85910 gvdfqBavaantack 5.188.210.78 2019-06-16 15:33

ugi [url=https://hempcbdoilplus.com/#]where to buy cbd oil[/url]

no.85909 pzwctBavaantack 5.188.210.77 2019-06-16 15:32

tmt [url=https://cboilsite.com/#]cbd oil cost[/url]

no.85908 rurniBavaantack 5.188.210.74 2019-06-16 15:30

awi [url=https://slot.us.org/#]300 free slots no download[/url]

no.85906 rptqdBavaantack 5.188.210.76 2019-06-16 15:19

hup [url=https://cbdoilhemp24.com/#]best cbd oil[/url]

no.85905 lpcqeBavaantack 5.188.210.74 2019-06-16 15:18

vcw [url=https://slot.us.org/#]bovada casino[/url]

no.85904 txiptBavaantack 5.188.210.75 2019-06-16 15:18

bit [url=https://cbdoilinn.com/#]cbd oils[/url]

no.85903 oxlhmBavaantack 5.188.210.73 2019-06-16 15:17

abj [url=https://casinobonus.us.org/#]online gambling sites[/url]

no.85902 wzeqiBavaantack 5.188.210.72 2019-06-16 15:12

xzc [url=https://casino-slot.us.org/#]vegas world casino games[/url]

no.85901 alzzpBavaantack 5.188.210.71 2019-06-16 15:11

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

no.85900 atejgBavaantack 5.188.210.73 2019-06-16 15:05

fxj [url=https://casinobonus.us.org/#]casino slot machine games[/url]

no.85899 abrdcBavaantack 5.188.210.76 2019-06-16 15:04

wkp [url=https://cbdoilhemp24.com/#]hemp oil arthritis[/url]

no.85898 vknjaBavaantack 5.188.210.76 2019-06-16 15:04

jsw [url=https://cbdoilhemp24.com/#]cbd oil prices[/url]

no.85897 cttowBavaantack 5.188.210.78 2019-06-16 14:53

bgq [url=https://hempcbdoilplus.com/#]cbd oil at walmart[/url]

no.85896 ebvuoBavaantack 5.188.210.77 2019-06-16 14:50

fss [url=https://cboilsite.com/#]cbd oil at walmart[/url]

no.85895 qgmmkBavaantack 5.188.210.80 2019-06-16 14:44

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

no.85894 moqbqBavaantack 5.188.210.71 2019-06-16 14:39

nrc [url=https://casino-slots.us.org/#]vegas world slots[/url]

no.85893 iimhnBavaantack 5.188.210.72 2019-06-16 14:38

ztw [url=https://casino-slot.us.org/#]free slot games[/url]

no.85892 bifujBavaantack 5.188.210.78 2019-06-16 14:36

hlo [url=https://hempcbdoilplus.com/#]hemp oil for dogs[/url]

no.85891 veqzlBavaantack 5.188.210.80 2019-06-16 14:35

iot [url=https://hempcbd2019.com/#]cbd oil stores near me[/url]

no.85890 ggzrlBavaantack 5.188.210.80 2019-06-16 14:35

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

no.85889 paihlBavaantack 5.188.210.80 2019-06-16 14:35

crv [url=https://hempcbd2019.com/#]cbd oil florida[/url]

no.85888 iyxjxBavaantack 5.188.210.77 2019-06-16 14:29

xih [url=https://cboilsite.com/#]cbd oil florida[/url]

no.85885 svycsBavaantack 5.188.210.75 2019-06-16 14:18

ihn [url=https://cbdoilinn.com/#]side effects of hemp oil[/url]

no.85884 vjzebBavaantack 5.188.210.78 2019-06-16 14:14

ipp [url=https://hempcbdoilplus.com/#]cbd oil price[/url]

no.85883 nvjdfBavaantack 5.188.210.71 2019-06-16 14:14

uyp [url=https://casino-slots.us.org/#]free slots[/url]

no.85882 kcogfBavaantack 5.188.210.73 2019-06-16 14:11

oym [url=https://casinobonus.us.org/#]play free vegas casino games[/url]

no.85881 wuznqBavaantack 5.188.210.77 2019-06-16 14:04

dod [url=https://cboilsite.com/#]strongest cbd oil for sale[/url]

no.85880 holvaBavaantack 5.188.210.76 2019-06-16 14:03

zaj [url=https://cbdoilhemp24.com/#]nutiva hemp oil[/url]

no.85879 dstcqBavaantack 5.188.210.75 2019-06-16 13:46

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

no.85878 qzchtBavaantack 5.188.210.74 2019-06-16 13:45

rtn [url=https://slot.us.org/#]casinos online[/url]

no.85877 yzburBavaantack 5.188.210.72 2019-06-16 13:44

lor [url=https://casino-slot.us.org/#]online gambling sites[/url]

no.85876 enftmBavaantack 5.188.210.78 2019-06-16 13:37

olx [url=https://hempcbdoilplus.com/#]cbd oil florida[/url]

no.85875 lqhxbBavaantack 5.188.210.74 2019-06-16 13:35

lof [url=https://slot.us.org/#]three rivers casino[/url]

no.85874 ljfuiBavaantack 5.188.210.72 2019-06-16 13:31

lam [url=https://casino-slot.us.org/#]slots for real money[/url]

no.85873 iiuueBavaantack 5.188.210.76 2019-06-16 13:23

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

no.85872 czrpxBavaantack 5.188.210.73 2019-06-16 13:19

vze [url=https://casinobonus.us.org/#]pechanga casino[/url]

no.85870 ishcaBavaantack 5.188.210.77 2019-06-16 13:16

uqb [url=https://cboilsite.com/#]cbd oil stores near me[/url]

no.85869 dgjumBavaantack 5.188.210.73 2019-06-16 13:13

ddb [url=https://casinobonus.us.org/#]grand falls casino[/url]

no.85868 hzcseBavaantack 5.188.210.71 2019-06-16 13:11

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

no.85867 xfibzBavaantack 5.188.210.76 2019-06-16 13:09

vzs [url=https://cbdoilhemp24.com/#]walgreens cbd oil[/url]

no.85866 ongpiBavaantack 5.188.210.76 2019-06-16 13:09

tor [url=https://cbdoilhemp24.com/#]cbd oil price[/url]

no.85865 enzpsBavaantack 5.188.210.80 2019-06-16 13:04

uoy [url=https://hempcbd2019.com/#]buy cbd oil[/url]

no.85864 txpeuBavaantack 5.188.210.75 2019-06-16 13:01

rkh [url=https://cbdoilinn.com/#]hemp oil benefits dr oz[/url]

no.85863 bjvtqBavaantack 5.188.210.74 2019-06-16 12:56

mih [url=https://slot.us.org/#]free coins slotomania[/url]

no.85862 lxhglBavaantack 5.188.210.78 2019-06-16 12:55

cza [url=https://hempcbdoilplus.com/#]cbd oil side effects[/url]

no.85861 dhzzcBavaantack 5.188.210.72 2019-06-16 12:53

bbs [url=https://casino-slot.us.org/#]lady luck online casino[/url]

no.85860 ujnkbBavaantack 5.188.210.80 2019-06-16 12:51

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

no.85859 ijomuBavaantack 5.188.210.80 2019-06-16 12:51

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

no.85858 rrbieBavaantack 5.188.210.80 2019-06-16 12:51

ndb [url=https://hempcbd2019.com/#]hemp oil for dogs[/url]

no.85857 nkeogBavaantack 5.188.210.74 2019-06-16 12:46

ufr [url=https://slot.us.org/#]play casino[/url]

发表评论:

邮箱: