在 IE6 上,若是要使用 meta 定義 charset 為 utf-8時,
需定義在title 之上,否則 IE6 會有問題。
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>home</title>
在 IE6 上,若是要使用 meta 定義 charset 為 utf-8時,
需定義在title 之上,否則 IE6 會有問題。
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>home</title>
Google Closure Compiler 是一個能壓縮和驗證 Java Script 的工具,並能最佳化程式碼。
command :
java -jar closure-compiler.jar –charset UTF-8 –js source.js –js_output_file output.js
Closure Tools : https://developers.google.com/closure/
Closure Compiler : https://developers.google.com/closure/compiler/
Download : http://closure-compiler.googlecode.com/files/compiler-latest.zip
YUI Compressor 是一個能壓縮和驗證 Java Script 的工具。
command :
java -jar yuicompressor.jar –charset UTF-8 –type js -o output.js –line-break 8000 source.js
YUI Compressor : http://developer.yahoo.com/yui/compressor/
Download : http://yuilibrary.com/download/yuicompressor/