好用的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.119973 nathnolatenley4915jbakc 217.138.202.43 2021-03-02 01:17

Good afternoon, I was just visiting your website and submitted this message via your feedback form. The feedback page on your site sends you messages like this to your email account which is the reason you're reading through my message right now right? This is the most important achievement with any kind of online ad, getting people to actually READ your message and I did that just now with you! If you have an advertisement you would like to blast out to tons of websites via their contact forms

no.119938 mirz27dq3xf 5.188.211.13 2021-02-21 17:43

Aq6NXW https://writemyessayforme.web.fc2.com#write

no.119690 marianne 13.65.37.135 2021-02-17 00:44

Use SendBulkMails.com to run email campaigns from your own private dashboard. Cold emails are allowed and won't get you blocked :) - 1Mil emails / mo @ $99 USD - Dedicated IP and Domain Included - Detailed statistical reports (delivery, bounce, clicks etc.) - Quick and easy setup with extended support at no extra cost. - Cancel anytime! Regards, www.SendBulkMails.com

no.119685 lou.debernales50 162.253.129.51 2021-02-13 16:58

Have you heard that contact form messages like these are in fact a highly effective way to get more visitors and sales for your site? How exactly is this done? Super easy, we craft an advertisement like the one you're reading now for you and we blast it out to lots of contact forms on any website and in any business category or area you need. Does this work? Since you've ready my entire message then you're proof that they do! What's more, this won't cost you much more than a hundred bucks a mont

no.119645 meghan.wing 184.75.214.196 2021-01-29 22:53

Want more visitors for your website? Get tons of keyword targeted visitors directly to your site. Boost your profits quick. Start seeing results in as little as 48 hours. To get info Check out: https://bit.ly/buy-niche-targeted-website-visitors

no.119636 hartsock.tisha55 184.75.211.148 2021-01-21 08:06

Want to find out how to get zero cost traffic for your site? Here are 5 high volume traffic sites where you can promote your site at zero cost: https://bit.ly/5-sites-where-you-can-get-free-traffic

no.119629 litchfield.chang 104.254.92.155 2021-01-16 14:25

Get visitors to your website, e-commerce site, local business, or blog for totally free. This post shows a few different ways to get lots of high exposure ads for free for your business: https://bit.ly/5waystoadvertisefree

no.119120 cody.akilah 192.253.253.45 2021-01-09 02:01

Good Day I am Mike from Hyperlabs, nice to meet you If you ever need more business towards luocheng.cn Please check our leading generator traffic solutions right here: https://hyperlabs.co/ Cheap and effective campaigns Try us today ! Thank you Mike Cody support@hyperlabs.co https://hyperlabs.co/

no.119113 beatrice.pinnock 162.253.131.124 2021-01-06 19:56

Have you heard that notes like these that come through your website's contact page are in fact an excellent way to generate leads for your website? How do we do this? Easy, we craft an ad text like this one for your site and we submit it to tons of website contact forms on any kind of website you want. Do ads like these work well? By reading this now, you just proved that they do! The best part is, you can do this for less than $3 a day! Want more info? send a reply here: HansenAndyc65833@gmail.

no.119105 copeley.kaylee 104.245.145.30 2021-01-05 18:41

Would you like to promote your website for free? Have a look at this: https://bit.ly/totally-free-ads

no.118459 old.lukas 162.253.129.214 2020-12-27 16:18

Would you like to check out how you can build your own affiliate marketing business and start earning money selling other businesses products online? Have a look at: https://bit.ly/earn-cash-with-affiliate-marketing

no.117772 angie.wilber43 212.102.33.170 2020-07-11 12:46

How would you like to promote your website for free? Have a look at this: https://bit.ly/free-ads2

no.117653 fantl.fay 195.181.168.182 2020-07-01 15:14

Boda Medical USA would like to present the 5-Ply KN95 Mask- Visit website https://bit.ly/bodamedicalusa for more information. Or Use Coupon Code 'PRO10' for 10% additional discount with free ground shipping from US warehouse directly.

no.117647 bethany.stickler 84.17.46.226 2020-06-30 05:42

Interested in an advertising service that charges less than $40 every month and delivers hundreds of people who are ready to buy directly to your website? For details visit: https://bit.ly/buy-more-visitors

no.117633 zelma.garcia 212.102.33.137 2020-06-28 03:16

Have you had enough of expensive PPC advertising? Now you can post your ad on 10,000 ad websites and you only have to pay a single monthly fee. Get unlimited traffic forever! For details check out: https://bit.ly/free-visitors-forever

no.117606 kaley.loe 84.17.46.201 2020-06-25 15:10

Greetings, I was just taking a look at your site and submitted this message via your contact form. The "contact us" page on your site sends you these messages to your email account which is why you are reading my message right now correct? This is the most important accomplishment with any kind of advertising, making people actually READ your ad and that's exactly what I just accomplished with you! If you have an advertisement you would like to blast out to thousands of websites via their contac

no.117582 dease.jolie 212.102.33.157 2020-06-24 05:20

TRIFECTA! A novel that starches your emotional – erotic itch! Against a background of big business, deceit, frustration, oppression drives a wide range of emotions as three generations of women from the same family, turn to the same man for emotional support and physical gratification! A wife deceives her husband while searching for her true sexuality! What motivates the wife’s mother and son-in-law to enter into a relationship? The wife’s collage age daughter, with tender guidance from her

no.117572 nannette.woolacott 93.87.75.118 2020-06-23 03:58

Hey My package was damaged for the second time. I made a picture so that you can see what I mean. https://imgurgallery.com/jke4t6 I hope you can help me solve this problem. Regards Nannette Woolacott "Sent from my Android"

no.117433 stockwell.brandy 37.120.144.93 2020-06-16 05:01

Hello, I was just checking out your site and filled out your contact form. The contact page on your site sends you messages like this via email which is why you're reading my message right now right? This is the most important achievement with any type of advertising, making people actually READ your ad and that's exactly what I just accomplished with you! If you have an ad message you would like to blast out to millions of websites via their contact forms in the US or anywhere in the world send

no.117420 franck.tamdhu 195.181.168.169 2020-06-15 12:06

The clarification of the critical situation in the world may help Your business. We don't give advice on how to run it. We highlight key points from the flood of information for You to draw conclusions. Fact: conflicting vested interests change the world. Agenda: control and reduction of the human population. Ways and Means: genetic engineering of viruses, mass-media scares, mandatory vaccination. Thank You for the time of reading our unsolicited message! God bless You. See: bit.ly/evilempire-

no.117362 georgetta.valente 195.181.168.170 2020-06-07 02:12

Hello, We have available the following, with low minimum order requirements - if you or anyone you know is in need: -Custom Printed Masks – reusable, washable – 100% custom printed ! -3ply Disposable Masks -KN95 masks and N95 masks with FDA, CE certificate -Gloves (Nitrile and Latex) -Disposable Gowns -Sanitizing Wipes -Hand Sanitizer -Face Shields -Oral and No Touch Thermometers Details: -We are based in the US -All products are produced Vietnam, Bangladesh, China or US – d

no.117222 brier.jeana94 162.253.129.170 2020-05-24 17:59

Interested in the latest fitness , wellness, nutrition trends? Check out my blog here: https://bit.ly/www-fitnessismystatussymbol-com And my Instagram page @ziptofitness

no.117219 mosher.christa 162.253.129.105 2020-05-24 16:23

What would you say to no cost advertising for your website? Check out: https://bit.ly/freeadsubmission

no.117209 lavada.abrams 103.28.70.136, 2020-05-24 06:51

Hey Thank you for the fast delivery to my place. When I saw the order. I immediately saw that something was wrong with it, and when I opened it, the product was unfortunately damaged. I made a photo so that you can see what I mean. https://imgurgallery.com/yh56wsf I am a regular customer, and I regularly order from your shop. Hope we can solve this small problem in a good way. Greetings Lavada Abrams "Sent from my Samsung phone"

no.117186 ezequiel.moten25 184.75.211.140 2020-05-23 04:04

Looking to Increase Sales? Want an easy turnkey way to do it? Watch this 60 sec video and contact me !!!!!! https://bit.ly/atxtcoupon-howitworks

no.117179 arron.cody 76.71.86.197 2020-05-22 07:19

Need a unique, personalized gift for the man in your life and his mancave? How about a photograph about something of interest to him. Visit https://bit.ly/photogeographics and start your search at humor and unusual/humor and continue to 22 other categories. Prices start at $25 and use discount code MC20 for a 20% discount at checkout.

no.117169 cosby.ute 162.253.131.148 2020-05-21 09:16

Stem cell therapy has proven itself to be one of the most effective treatments for COPD (Chronic Obstructive Pulmonary Disorder). IMC is the leader in stem cell therapies in Mexico. For more information on how we can treat COPD please visit: https://bit.ly/copd-integramedicalcenter

no.117063 candra.poate35 89.187.178.143 2020-05-14 14:52

Log into: https://bit.ly/exercisefitnessandhealth Free to all who need it - and everyone does need it. My Blog explains all you need to know about exercise - what it involves, how it is measured, how much you should take, the effect on health and lifespan and the great improvement in quality of life which regular physical activity brings Sign up and I will send you a weekly update

no.117036 fryett.carmon76 104.245.144.237 2020-05-13 10:20

Are You Still Looking For A Fulfilled Life? Then You have Come To The Right Place! Go here Now ==>>https://bit.ly/Powerof-Numerology

no.116790 shana.skalski 104.245.145.10 2020-04-23 12:31

Greetings, I was just taking a look at your website and submitted this message via your feedback form. The contact page on your site sends you messages like this via email which is the reason you're reading through my message at this moment correct? This is the holy grail with any type of online ad, making people actually READ your ad and I did that just now with you! If you have something you would like to blast out to lots of websites via their contact forms in the U.S. or anywhere in the worl

no.116505 stroup.arnette57 104.254.92.218 2020-04-09 04:05

Good evening, I was just checking out your website and submitted this message via your contact form. The "contact us" page on your site sends you these messages to your email account which is the reason you are reading through my message at this moment correct? This is the most important accomplishment with any kind of online ad, getting people to actually READ your advertisement and that's exactly what I just accomplished with you! If you have something you would like to blast out to thousands

no.115750 cantrell.dustin 95.142.118.28 2020-03-03 04:57

Are you trying to find powerful advertising that delivers real results? I apologize for sending you this message on your contact form but actually that's exactly where I wanted to make my point. We can send your ad text to sites through their contact forms just like you're reading this message right now. You can specify targets by keyword or just start mass blasts to sites in any country you choose. So let's assume you're looking to push through a message to all the plumbing companies in the US,

no.115558 sales1 85.203.22.218 2020-02-24 05:33

Dear Sirs We would like to inform you that we added scarce 1955 Mercedes-Benz 190SL Convertible, 1961 Mercedes-Benz 220 Convertible and 1967 Cobra DAX to our stock. All these cars are in showroom condition. You can check more details and images for these cars at https://wexxluxurycars.com/16-classic-cars. We can offer you high sales commissions (up to $20000 per car). You will need to find buyers for our luxury & classic European vehicles. We sell luxury & vintage Rolls-Royce, Ferrari, McLaren,

no.114537 ransom.salvatore39 175.100.86.17 2020-01-26 16:02

Hi I have a question? Do you want to increase conversions, traffic to your website, or both? For more information go to: https://screenshot.photos/digitalmarketingagency greetings Phiskal

no.114182 marissa.macneil87 184.75.211.155 2020-01-12 08:57

Looking for effective advertising that delivers real results? I apologize for sending you this message on your contact form but actually that was the whole point. We can send your advertising text to websites via their contact forms just like you're getting this ad right now. You can target by keyword or just execute bulk blasts to websites in the location of your choice. So let's say you're looking to blast an ad to all the interior decorators in the USA, we'll scrape websites for only those an

no.112257 leigh.afford 93.87.75.118 2019-12-20 09:47

Your website is nominated, for best fashion photo of the year 2020 in catogory fashion. Our international jury has registered your website on the competition list, for more info go to https://screenshot.photos/nominated Thank you

no.112250 hoare.daryl 184.75.211.141 2019-12-19 02:06

Need to find powerful online promotion that isn't full of crap? Sorry to bug you on your contact form but actually that was kinda the point. We can send your advertising copy to sites through their contact forms just like you're receiving this message right now. You can specify targets by keyword or just start mass blasts to sites in the location of your choice. So let's assume you want to send a message to all the web developers in the United States, we'll scrape websites for only those and pos

no.112207 v3170viat 37.195.209.169 2019-12-10 08:15

order generic cialis india popular pills online comprar cialis spain [url=https://topedstoreusa.com/#]buy cialis online from uk[/url] buy cialis generic canada buy viagra und cialis <a href="https://topedstoreusa.com/#&quot;&gt;cheap levitra line&lt;/a&gt; legal buy viagra online how to get cheap cialis

no.111747 elmer.armstrong44 104.254.92.242 2019-12-06 12:10

Would you be interested in advertising that charges less than $49 monthly and delivers hundreds of people who are ready to buy directly to your website? Please send me a reply here: walter3519rob@gmail.com to get more info.

no.111715 violette.ernst 184.75.211.156 2019-12-02 02:20

Are you looking for effective online promotion that isn't full of BS? Sorry to bug you on your contact form but actually that was the whole point. We can send your ad copy to websites through their contact forms just like you're receiving this message right now. You can target by keyword or just start bulk blasts to sites in the country of your choice. So let's assume you're looking to push through an ad to all the web developers in the USA, we'll grab websites for just those and post your promo

no.111681 clifford.velva13 184.75.211.155 2019-11-25 13:54

Would you be interested in advertising that charges less than $50 every month and sends thousands of people who are ready to buy directly to your website? Reply to: alfred4756will@gmail.com to get more info.

no.111442 gertrude.dion 104.254.92.218 2019-11-09 02:56

Looking for powerful online promotion that isn't completely full of it? I apologize for sending you this message on your contact form but actually that was the whole point. We can send your promotional message to websites via their contact pages just like you're reading this note right now. You can target by keyword or just start mass blasts to sites in any country you choose. So let's assume you're looking to send a message to all the mortgage brokers in the US, we'll grab websites for only tho

no.111030 barbour.jurgen 104.245.145.58 2019-10-09 11:49

Jurgen

no.110854 horgan.arden 77.234.44.141 2019-10-02 03:57

Would you be interested in advertising that charges less than $40 per month and delivers thousands of people who are ready to buy directly to your website? Please send me a reply here: mia4675whi@gmail.com and I'll send more details.

no.110408 kmjdjBavaantack 5.188.210.73 2019-08-28 01:47

kah [url=https://onlinecasinogames777.us/#]online casinos[/url] tnq [url=https://onlinecasinogames777.us/#]big fish casino[/url] ubg [url=https://onlinecasinogames777.us/#]free casino games[/url]

no.110407 gqjipBavaantack 5.188.210.74 2019-08-28 01:39

ebm [url=https://casinorealmoney.us/#]free casino games[/url] ffv [url=https://casinorealmoney.us/#]online casinos[/url] jdr [url=https://casinorealmoney.us/#]casino game[/url]

no.110406 zjbpdBavaantack 5.188.210.78 2019-08-28 01:38

nuo [url=https://turbohempcbd.com/#]cbd oil prices[/url] lif [url=https://turbohempcbd.com/#]cbd hemp oil walmart[/url]

no.110405 lsnhcBavaantack 5.188.210.72 2019-08-28 01:18

bmh [url=https://online-casino24.us/#]free casino games online[/url] kwa [url=https://online-casino24.us/#]online casino real money[/url] wij [url=https://online-casino24.us/#]real money casino[/url]

no.110404 apiubBavaantack 5.188.210.76 2019-08-28 01:04

day [url=https://hemp-oil2019.com/#]cbd oil at walmart[/url]

no.110403 zqrusBavaantack 5.188.210.73 2019-08-28 00:54

jgc [url=https://onlinecasinogames777.us/#]no deposit casino[/url] uqg [url=https://onlinecasinogames777.us/#]casino games[/url]

发表评论:

邮箱: