好用的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.47870 zczrsBavaantack 5.188.210.67 2019-01-24 19:49

[url=https://cbd-oil.us.com/#]cbd oil dosage instructions[/url] [url=https://cbd-oil.us.com/#]cbd oil distributors[/url] [url=https://cbd-oil.us.com/#]lazarus cbd oil[/url] https://cbd-oil.us.com/#

no.47869 fanxzBavaantack 5.188.210.64 2019-01-24 19:49

[url=https://cbdoil.us.com/#]cbd oil distributors[/url] [url=https://cbdoil.us.com/#]where to buy cbd oil[/url] [url=https://cbdoil.us.com/#]cbd hemp oil walmart[/url] https://cbdoil.us.com/#

no.47868 qeulhBavaantack 5.188.210.68 2019-01-24 19:42

[url=https://mycbdoil.us.org/#]cbd brothers[/url] [url=https://mycbdoil.us.org/#]purekana cbd oil[/url] [url=https://mycbdoil.us.org/#]cbd oil legal[/url] https://mycbdoil.us.org/#

no.47867 dmharBavaantack 5.188.210.62 2019-01-24 19:42

[url=https://mycbdoil.us.com/#]cwhempcbdoil[/url] [url=https://mycbdoil.us.com/#]cbd for sale[/url] [url=https://mycbdoil.us.com/#]cbd oil stores near me[/url] https://mycbdoil.us.com/#

no.47866 rwxyaBavaantack 5.188.210.66 2019-01-24 19:35

[url=https://mycasinoslots.us.org/#]slots games vegas world[/url] [url=https://mycasinoslots.us.org/#]freeslots.com slots[/url] [url=https://mycasinoslots.us.org/#]borgata online casino[/url] https://mycasinoslots.us.org/#

no.47865 emwobBavaantack 5.188.210.67 2019-01-24 19:17

[url=https://cbd-oil.us.com/#]what is cbd oil good for[/url] [url=https://cbd-oil.us.com/#]the distillery[/url] [url=https://cbd-oil.us.com/#]cv sciences cbd oil[/url] https://cbd-oil.us.com/#

no.47864 alvcqBavaantack 5.188.210.70 2019-01-24 19:13

[url=https://cbdoil.us.org/#]cbd hemp oil walmart[/url] [url=https://cbdoil.us.org/#]cbd oil uk[/url] [url=https://cbdoil.us.org/#]cbd oil price at walmart[/url] https://cbdoil.us.org/#

no.47863 bevwuBavaantack 5.188.210.60 2019-01-24 19:05

[url=https://buycbdoil.us.com/#]cbd shop[/url] [url=https://buycbdoil.us.com/#]cbd oil with thc[/url] [url=https://buycbdoil.us.com/#]charlotte web cbd oil[/url] https://buycbdoil.us.com/#

no.47862 qlfymBavaantack 5.188.210.66 2019-01-24 19:05

[url=https://mycasinoslots.us.org/#]biggest no deposit welcome bonus[/url] [url=https://mycasinoslots.us.org/#]stn play online casino[/url] [url=https://mycasinoslots.us.org/#]caesars casino online[/url] https://mycasinoslots.us.org/#

no.47861 xzkuhBavaantack 5.188.210.62 2019-01-24 18:55

[url=https://mycbdoil.us.com/#]charlotte web cbd oil[/url] [url=https://mycbdoil.us.com/#]the best cbd oil on the market[/url] [url=https://mycbdoil.us.com/#]cbd oil australia[/url] https://mycbdoil.us.com/#

no.47860 hkysfBavaantack 5.188.210.69 2019-01-24 18:55

[url=https://buycbdoil.us.org/#]retail stores selling cbd oil[/url] [url=https://buycbdoil.us.org/#]what does cbd stand for[/url] [url=https://buycbdoil.us.org/#]where to buy cbd oil in canada[/url] https://buycbdoil.us.org/#

no.47859 nmtpkBavaantack 5.188.210.69 2019-01-24 18:55

[url=https://buycbdoil.us.org/#]cbd coffee[/url] [url=https://buycbdoil.us.org/#]cbd oil legal[/url] [url=https://buycbdoil.us.org/#]cbd cream for pain relief[/url] https://buycbdoil.us.org/#

no.47858 ephovBavaantack 5.188.210.66 2019-01-24 18:53

[url=https://mycasinoslots.us.org/#]online casino no deposit free welcome bonus[/url] [url=https://mycasinoslots.us.org/#]casinos online[/url] [url=https://mycasinoslots.us.org/#]slots lounge[/url] https://mycasinoslots.us.org/#

no.47857 dveqoBavaantack 5.188.210.64 2019-01-24 18:52

[url=https://cbdoil.us.com/#]ultra cell cbd oil[/url] [url=https://cbdoil.us.com/#]cbd clinic products[/url] [url=https://cbdoil.us.com/#]the cbd store[/url] https://cbdoil.us.com/#

no.47856 ohifwBavaantack 5.188.210.64 2019-01-24 18:52

[url=https://cbdoil.us.com/#]cbd oil and drug testing[/url] [url=https://cbdoil.us.com/#]cbd water[/url] [url=https://cbdoil.us.com/#]cbd oil with thc[/url] https://cbdoil.us.com/#

no.47855 bflxnBavaantack 5.188.210.67 2019-01-24 18:52

[url=https://cbd-oil.us.com/#]cbd oil dosage instructions[/url] [url=https://cbd-oil.us.com/#]cbd clinic products[/url] [url=https://cbd-oil.us.com/#]cbd vape pen[/url] https://cbd-oil.us.com/#

no.47854 vqufvBavaantack 5.188.210.64 2019-01-24 18:48

[url=https://cbdoil.us.com/#]cbd water[/url] [url=https://cbdoil.us.com/#]benefits of cbd oil[/url] [url=https://cbdoil.us.com/#]the cbd store[/url] https://cbdoil.us.com/#

no.47853 niyamBavaantack 5.188.210.68 2019-01-24 18:47

[url=https://mycbdoil.us.org/#]cbd dog treats[/url] [url=https://mycbdoil.us.org/#]best cbd oil uk[/url] [url=https://mycbdoil.us.org/#]cbd salve[/url] https://mycbdoil.us.org/#

no.47852 jzrwlBavaantack 5.188.210.70 2019-01-24 18:47

[url=https://cbdoil.us.org/#]cbd cream for pain[/url] [url=https://cbdoil.us.org/#]reddit cbd[/url] [url=https://cbdoil.us.org/#]cbd oil online[/url] https://cbdoil.us.org/#

no.47851 eemriBavaantack 5.188.210.68 2019-01-24 18:19

[url=https://mycbdoil.us.org/#]cbd oil canada[/url] [url=https://mycbdoil.us.org/#]pure kana cbd oil[/url] [url=https://mycbdoil.us.org/#]cbd oil canada[/url] https://mycbdoil.us.org/#

no.47850 bcnphBavaantack 5.188.210.60 2019-01-24 18:15

[url=https://buycbdoil.us.com/#]cbd lotion[/url] [url=https://buycbdoil.us.com/#]cbd oil[/url] [url=https://buycbdoil.us.com/#]walgreens cbd oil[/url] https://buycbdoil.us.com/#

no.47849 ppumkBavaantack 5.188.210.60 2019-01-24 18:15

[url=https://buycbdoil.us.com/#]cbd cream for pain relief[/url] [url=https://buycbdoil.us.com/#]vaping cbd oil[/url] [url=https://buycbdoil.us.com/#]cbd oil dosage[/url] https://buycbdoil.us.com/#

no.47848 jctjdBavaantack 5.188.210.68 2019-01-24 18:13

[url=https://mycbdoil.us.org/#]organic cbd oil[/url] [url=https://mycbdoil.us.org/#]cbd oil calgary[/url] [url=https://mycbdoil.us.org/#]cannabidiol[/url] https://mycbdoil.us.org/#

no.47847 zjdtyBavaantack 5.188.210.62 2019-01-24 17:55

[url=https://mycbdoil.us.com/#]cbd oil cost[/url] [url=https://mycbdoil.us.com/#]bluebird cbd oil[/url] [url=https://mycbdoil.us.com/#]charlotte web cbd oil[/url] https://mycbdoil.us.com/#

no.47846 utalaBavaantack 5.188.210.67 2019-01-24 17:51

[url=https://cbd-oil.us.com/#]best cbd oil[/url] [url=https://cbd-oil.us.com/#]cbd oil calgary[/url] [url=https://cbd-oil.us.com/#]pure cbd oil[/url] https://cbd-oil.us.com/#

no.47845 gzohbBavaantack 5.188.210.69 2019-01-24 17:47

[url=https://buycbdoil.us.org/#]pure essence cbd oil[/url] [url=https://buycbdoil.us.org/#]what is cbd[/url] [url=https://buycbdoil.us.org/#]bluebird cbd oil[/url] https://buycbdoil.us.org/#

no.47844 zzgwdBavaantack 5.188.210.69 2019-01-24 17:47

[url=https://buycbdoil.us.org/#]where can you buy cbd oil[/url] [url=https://buycbdoil.us.org/#]cbd oil holland and barrett[/url] [url=https://buycbdoil.us.org/#]best cbd oil uk[/url] https://buycbdoil.us.org/#

no.47843 ewngxBavaantack 5.188.210.60 2019-01-24 17:46

[url=https://buycbdoil.us.com/#]best cbd oil reviews[/url] [url=https://buycbdoil.us.com/#]cbd benefits[/url] [url=https://buycbdoil.us.com/#]cbd capsules[/url] https://buycbdoil.us.com/#

no.47842 zmnonBavaantack 5.188.210.70 2019-01-24 17:40

[url=https://cbdoil.us.org/#]cbd for dogs[/url] [url=https://cbdoil.us.org/#]cbd pure[/url] [url=https://cbdoil.us.org/#]cbd oil benefits[/url] https://cbdoil.us.org/#

no.47841 glmdvBavaantack 5.188.210.62 2019-01-24 17:36

[url=https://mycbdoil.us.com/#]hempworks cbd oil[/url] [url=https://mycbdoil.us.com/#]ultra cell cbd oil[/url] [url=https://mycbdoil.us.com/#]cbd marijuana[/url] https://mycbdoil.us.com/#

no.47840 utnruBavaantack 5.188.210.66 2019-01-24 17:30

[url=https://mycasinoslots.us.org/#]free slots[/url] [url=https://mycasinoslots.us.org/#]hallmark casino online[/url] [url=https://mycasinoslots.us.org/#]slot machine free[/url] https://mycasinoslots.us.org/#

no.47838 snksuBavaantack 5.188.210.64 2019-01-24 17:13

[url=https://cbdoil.us.com/#]cbd stocks[/url] [url=https://cbdoil.us.com/#]apex cbd oil[/url] [url=https://cbdoil.us.com/#]cbd oil interactions with medications[/url] https://cbdoil.us.com/#

no.47837 yetvvBavaantack 5.188.210.68 2019-01-24 17:06

[url=https://mycbdoil.us.org/#]cbd book distributors[/url] [url=https://mycbdoil.us.org/#]walgreens cbd oil[/url] [url=https://mycbdoil.us.org/#]diamond cbd[/url] https://mycbdoil.us.org/#

no.47836 nocfaBavaantack 5.188.210.67 2019-01-24 17:03

[url=https://cbd-oil.us.com/#]cbd college[/url] [url=https://cbd-oil.us.com/#]cbd side effects[/url] [url=https://cbd-oil.us.com/#]organic cbd oil[/url] https://cbd-oil.us.com/#

no.47835 dbxwvBavaantack 5.188.210.62 2019-01-24 17:03

[url=https://mycbdoil.us.com/#]what does cbd stand for[/url] [url=https://mycbdoil.us.com/#]buy cbd hemp buds[/url] [url=https://mycbdoil.us.com/#]cbd oil dosage instructions[/url] https://mycbdoil.us.com/#

no.47834 ijfxeBavaantack 5.188.210.66 2019-01-24 17:00

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

no.47833 cpkpfBavaantack 5.188.210.60 2019-01-24 16:53

[url=https://buycbdoil.us.com/#]hemp oil vs cbd oil[/url] [url=https://buycbdoil.us.com/#]pure kana cbd oil[/url] [url=https://buycbdoil.us.com/#]cbd vape juice[/url] https://buycbdoil.us.com/#

no.47832 oajhqBavaantack 5.188.210.70 2019-01-24 16:52

[url=https://cbdoil.us.org/#]cbd capsules[/url] [url=https://cbdoil.us.org/#]organic cbd oil[/url] [url=https://cbdoil.us.org/#]retail stores selling cbd oil[/url] https://cbdoil.us.org/#

no.47831 wnmgpBavaantack 5.188.210.66 2019-01-24 16:48

[url=https://mycasinoslots.us.org/#]caesar casino online slot games[/url] [url=https://mycasinoslots.us.org/#]grand falls casino[/url] [url=https://mycasinoslots.us.org/#]casino play[/url] https://mycasinoslots.us.org/#

no.47830 axefhBavaantack 5.188.210.69 2019-01-24 16:45

[url=https://buycbdoil.us.org/#]cbd products[/url] [url=https://buycbdoil.us.org/#]cbd oil capsules[/url] [url=https://buycbdoil.us.org/#]cbd oil at amazon[/url] https://buycbdoil.us.org/#

no.47829 ekzgxBavaantack 5.188.210.69 2019-01-24 16:45

[url=https://buycbdoil.us.org/#]cbd isolate[/url] [url=https://buycbdoil.us.org/#]pure essence cbd oil[/url] [url=https://buycbdoil.us.org/#]cbd for sale[/url] https://buycbdoil.us.org/#

no.47828 rhfdiBavaantack 5.188.210.67 2019-01-24 16:31

[url=https://cbd-oil.us.com/#]cbd oil interactions with medications[/url] [url=https://cbd-oil.us.com/#]pure cbd oil[/url] [url=https://cbd-oil.us.com/#]what does cbd stand for[/url] https://cbd-oil.us.com/#

no.47827 woeblBavaantack 5.188.210.70 2019-01-24 16:25

[url=https://cbdoil.us.org/#]cbd side effects on liver[/url] [url=https://cbdoil.us.org/#]cbd oil reviews[/url] [url=https://cbdoil.us.org/#]cbd oil in canada[/url] https://cbdoil.us.org/#

no.47826 ugjdnBavaantack 5.188.210.62 2019-01-24 16:13

[url=https://mycbdoil.us.com/#]cbd[/url] [url=https://mycbdoil.us.com/#]hempworx cbd oil[/url] [url=https://mycbdoil.us.com/#]cbd plus[/url] https://mycbdoil.us.com/#

no.47825 djgsvBavaantack 5.188.210.64 2019-01-24 16:13

[url=https://cbdoil.us.com/#]buy cbd oil for dogs[/url] [url=https://cbdoil.us.com/#]cbd cream[/url] [url=https://cbdoil.us.com/#]how much cbd oil should i take[/url] https://cbdoil.us.com/#

no.47824 tonooBavaantack 5.188.210.64 2019-01-24 16:13

[url=https://cbdoil.us.com/#]cbdistillery[/url] [url=https://cbdoil.us.com/#]cbd cream for pain relief[/url] [url=https://cbdoil.us.com/#]buy cbd oil uk[/url] https://cbdoil.us.com/#

no.47823 ziksuBavaantack 5.188.210.68 2019-01-24 16:09

[url=https://mycbdoil.us.org/#]cbd vape oil[/url] [url=https://mycbdoil.us.org/#]nuleaf cbd oil[/url] [url=https://mycbdoil.us.org/#]plus cbd oil[/url] https://mycbdoil.us.org/#

no.47822 cvnavBavaantack 5.188.210.60 2019-01-24 16:05

[url=https://buycbdoil.us.com/#]cbd cream for pain relief[/url] [url=https://buycbdoil.us.com/#]zilis cbd oil[/url] [url=https://buycbdoil.us.com/#]the distillery[/url] https://buycbdoil.us.com/#

no.47821 rfbdgBavaantack 5.188.210.60 2019-01-24 16:05

[url=https://buycbdoil.us.com/#]cbd oil colorado[/url] [url=https://buycbdoil.us.com/#]cbd flower[/url] [url=https://buycbdoil.us.com/#]ananda cbd oil[/url] https://buycbdoil.us.com/#

no.47820 aeqatBavaantack 5.188.210.67 2019-01-24 16:02

[url=https://cbd-oil.us.com/#]cbd oil at gnc[/url] [url=https://cbd-oil.us.com/#]where to buy cbd oil near me[/url] [url=https://cbd-oil.us.com/#]cbd clinic products[/url] https://cbd-oil.us.com/#

发表评论:

邮箱: