有效压缩 js

js 的压缩工具很多,被人们广为流传的是 Dean Edwards' Packerthe Dojo compressorYUI Compressor,经我试用,Dean Edwards' Packer 是有损的,the Dojo compressor 压缩率不及 YUI Compressor,所以让我选择的话,YUI Compressor 是最好的选择。

Linux 下用法:解压下载下来的文件,运行

java -jar yuicompressor-x.y.z.jar -o output.js input.js

Submit Article :- Digg + Del.icio.us + Google Bookmarks + Reddit + Technorati

Tags: ,

This entry was posted on Sunday, November 2nd, 2008 at 8:52 am and is filed under internet exploration. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

6 Responses to “有效压缩 js”

gravatar image

Netforce November 2nd, 2008 at 9:15 am | reply

Linux推广之路不易,如屈老所说:路漫漫其修远兮,吾将上下而求索。

gravatar image

November 2nd, 2008 at 9:52 am | reply

@Netforce:
老所说的很精辟啊!!!

gravatar image

Centeur November 2nd, 2008 at 11:06 am | reply

@Netforce: 呵呵,路走的人多了,就会成为大路,也会通向罗马。

gravatar image

Shawn November 2nd, 2008 at 2:31 pm | reply

我也觉得 YUI 是最好的,还能压缩 css

gravatar image

Centeur November 2nd, 2008 at 4:04 pm | reply

@Shawn: 英雄所见略同,压缩 css 的效果也不错。

gravatar image

花果山寨 November 2nd, 2008 at 5:28 pm | reply

这玩意没有用过!菜得很

Leave a Reply

Please copy the string YDFQNB to the field below: