想要看其他的壓縮可以參考此篇http://pim0110.webhop.org/joomla/index.php/javascript/122-javascript- Google Closure Compiler 提供三種壓縮方法,分別是空格移除、簡單壓縮及進階壓縮。簡單壓縮基本上只是把 comments 和空格拿走(跟 YUI Compressor 基本一樣);進階壓縮除以上功能外,還能夠 rename variable name、甚至重寫某些 statement!很好很強大! Google JavaScript Closure Compiler 有單機版和線上版兩款: 附官方英文版簡介: Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what’s left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google’s JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.
回應
RSS 書籤訂閱回應內容