锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲成a人片在线观看精品,亚洲日韩国产欧美一区二区三区,久久久青草青青亚洲国产免观http://www.tkk7.com/goodlyts/category/32291.htmlzh-cnFri, 20 Jun 2008 09:06:03 GMTFri, 20 Jun 2008 09:06:03 GMT60Javascript鍦↖E鍜孎ireFox涓殑涓嶅悓琛ㄧ幇 http://www.tkk7.com/goodlyts/archive/2008/06/20/209475.html嫻佽叆楸?/dc:creator>嫻佽叆楸?/author>Fri, 20 Jun 2008 07:55:00 GMThttp://www.tkk7.com/goodlyts/archive/2008/06/20/209475.htmlhttp://www.tkk7.com/goodlyts/comments/209475.htmlhttp://www.tkk7.com/goodlyts/archive/2008/06/20/209475.html#Feedback0http://www.tkk7.com/goodlyts/comments/commentRss/209475.htmlhttp://www.tkk7.com/goodlyts/services/trackbacks/209475.html JS 瀵硅薄浠嬬粛 1.document.formName.item("itemName") 闂
璇存槑:IE涓?鍙互浣跨敤document.formName.item("itemName")鎴杁ocument.formName.elements["elementName"];Firefox涓?鍙兘浣跨敤document.formName.elements["elementName"].
瑙e喅鏂規(guī)硶:緇熶竴浣跨敤document.formName.elements["elementName"].

2.闆嗗悎綾誨璞¢棶棰?br /> 璇存槑:IE涓?鍙互浣跨敤()鎴朳]鑾峰彇闆嗗悎綾誨璞?Firefox涓?鍙兘浣跨敤[]鑾峰彇闆嗗悎綾誨璞?
瑙e喅鏂規(guī)硶:緇熶竴浣跨敤[]鑾峰彇闆嗗悎綾誨璞?

3.鑷畾涔夊睘鎬ч棶棰?br /> 璇存槑:IE涓?鍙互浣跨敤鑾峰彇甯歌灞炴х殑鏂規(guī)硶鏉ヨ幏鍙栬嚜瀹氫箟灞炴?涔熷彲浠ヤ嬌鐢╣etAttribute()鑾峰彇鑷畾涔夊睘鎬?Firefox涓?鍙兘浣跨敤getAttribute()鑾峰彇鑷畾涔夊睘鎬?
瑙e喅鏂規(guī)硶:緇熶竴閫氳繃getAttribute()鑾峰彇鑷畾涔夊睘鎬?

4.eval("idName")闂
璇存槑:IE涓?,鍙互浣跨敤eval("idName")鎴杇etElementById("idName")鏉ュ彇寰梚d涓篿dName鐨凥TML瀵硅薄;Firefox涓嬪彧鑳戒嬌鐢╣etElementById("idName")鏉ュ彇寰梚d涓篿dName鐨凥TML瀵硅薄.
瑙e喅鏂規(guī)硶:緇熶竴鐢╣etElementById("idName")鏉ュ彇寰梚d涓篿dName鐨凥TML瀵硅薄.

5.鍙橀噺鍚嶄笌鏌怘TML瀵硅薄ID鐩稿悓鐨勯棶棰?br /> 璇存槑:IE涓?HTML瀵硅薄鐨処D鍙互浣滀負(fù)document鐨勪笅灞炲璞″彉閲忓悕鐩存帴浣跨敤;Firefox涓嬪垯涓嶈兘.Firefox涓?鍙互浣跨敤涓嶩TML瀵硅薄ID鐩稿悓鐨勫彉閲忓悕;IE涓嬪垯涓嶈兘銆?br /> 瑙e喅鏂規(guī)硶:浣跨敤document.getElementById("idName")浠f浛document.idName.鏈濂戒笉瑕佸彇HTML瀵硅薄ID鐩稿悓鐨勫彉閲忓悕,浠ュ噺灝戦敊璇?鍦ㄥ0鏄庡彉閲忔椂,涓寰嬪姞涓妚ar,浠ラ伩鍏嶆涔?

7.input.type灞炴ч棶棰?br /> 璇存槑:IE涓媔nput.type灞炴т負(fù)鍙;浣嗘槸Firefox涓媔nput.type灞炴т負(fù)璇誨啓.

9.event.x涓巈vent.y闂
璇存槑:IE涓?even瀵硅薄鏈墄,y灞炴?浣嗘槸娌℃湁pageX,pageY灞炴?Firefox涓?even瀵硅薄鏈塸ageX,pageY灞炴?浣嗘槸娌℃湁x,y灞炴?
瑙e喅鏂規(guī)硶:浣跨敤mX(mX = event.x ? event.x : event.pageX;)鏉ヤ唬鏇縄E涓嬬殑event.x鎴栬匜irefox涓嬬殑event.pageX.

10.event.srcElement闂
璇存槑:IE涓?event瀵硅薄鏈塻rcElement灞炴?浣嗘槸娌℃湁target灞炴?Firefox涓?event瀵硅薄鏈塼arget灞炴?浣嗘槸娌℃湁srcElement灞炴?
瑙e喅鏂規(guī)硶:浣跨敤obj(obj = event.srcElement ? event.srcElement : event.target;)鏉ヤ唬鏇縄E涓嬬殑event.srcElement鎴栬匜irefox涓嬬殑event.target.

13.frame闂
浠ヤ笅闈㈢殑frame涓轟緥錛?br /> <frame src="xxx.html" id="frameId" name="frameName" />

(1)璁塊棶frame瀵硅薄:
IE:浣跨敤window.frameId鎴栬厀indow.frameName鏉ヨ闂繖涓猣rame瀵硅薄.
Firefox:鍙兘浣跨敤window.frameName鏉ヨ闂繖涓猣rame瀵硅薄.
鍙﹀錛屽湪IE鍜孎irefox涓兘鍙互浣跨敤window.document.getElementById("frameId")鏉ヨ闂繖涓猣rame瀵硅薄.

(2)鍒囨崲frame鍐呭:
鍦↖E鍜孎irefox涓兘鍙互浣跨敤window.document.getElementById("testFrame").src = "xxx.html"鎴杦indow.frameName.location = "xxx.html"鏉ュ垏鎹rame鐨勫唴瀹?

濡傛灉闇瑕佸皢frame涓殑鍙傛暟浼犲洖鐖剁獥鍙o紝鍙互鍦╢rme涓嬌鐢╬arent鏉ヨ闂埗紿楀彛銆備緥濡傦細(xì)parent.document.form1.filename.value="Aqing";

14.body闂
Firefox鐨刡ody鍦╞ody鏍囩娌℃湁琚祻瑙堝櫒瀹屽叏璇誨叆涔嬪墠灝卞瓨鍦紱鑰孖E鐨刡ody鍒欏繀欏誨湪body鏍囩琚祻瑙堝櫒瀹屽叏璇誨叆涔嬪悗鎵嶅瓨鍦?

渚嬪錛?
Firefox錛?
<body>
<script type="text/javascript">
document.body.onclick = function(evt){
evt = evt || window.event;
alert(evt);
}
</script>
</body>
IE&Firefox錛?
<body>
</body>
<script type="text/javascript">
document.body.onclick = function(evt){
evt = evt || window.event;
alert(evt);
} </script>

15. 浜嬩歡濮旀墭鏂規(guī)硶
IE錛歞ocument.body.onload = inject; //Function inject()鍦ㄨ繖涔嬪墠宸茶瀹炵幇

Firefox錛歞ocument.body.onload = inject();

鏈変漢璇存爣鍑嗘槸錛?br /> document.body.onload=new Function('inject()');

16. firefox涓嶪E(parentElement)鐨勭埗鍏冪礌鐨勫尯鍒?br /> IE錛歰bj.parentElement
firefox錛歰bj.parentNode

瑙e喅鏂規(guī)硶: 鍥犱負(fù)firefox涓嶪E閮芥敮鎸丏OM,鍥犳浣跨敤obj.parentNode鏄笉閿欓夋嫨.

17.innerText鍦↖E涓兘姝e父宸ヤ綔錛屼絾鏄痠nnerText鍦‵ireFox涓嵈涓嶈.
瑙e喅鏂規(guī)硶:
if(navigator.appName.indexOf("Explorer") > -1){

    document.getElementById('element').innerText = "my text";

} else{

    document.getElementById('element').textContent = "my text";

}

18. FireFox涓被浼?obj.style.height = imgObj.height 鐨勮鍙ユ棤鏁?br /> 瑙e喅鏂規(guī)硶錛?br /> obj.style.height = imgObj.height + 'px';

19. ie,firefox浠ュ強(qiáng)鍏跺畠嫻忚鍣ㄥ浜?table 鏍囩鐨勬搷浣滈兘鍚勪笉鐩稿悓錛屽湪ie涓笉鍏佽瀵箃able鍜宼r鐨刬nnerHTML璧嬪鹼紝浣跨敤js澧炲姞涓涓猼r鏃訛紝浣跨敤appendChile鏂規(guī)硶涔熶笉綆$敤銆?br /> 瑙e喅鏂規(guī)硶錛?br /> //鍚憈able榪藉姞涓涓┖琛岋細(xì)
var row = otable.insertRow(-1);
var cell = document.createElement("td");
cell.innerHTML = " ";
cell.className = "XXXX";
row.appendChild(cell);

20. padding 闂
padding 5px 4px 3px 1px FireFox鏃犳硶瑙i噴綆鍐?

蹇呴』鏀規(guī)垚 padding-top:5px; padding-right:4px; padding-bottom:3px; padding-left:1px;

21. 娑堥櫎ul銆乷l絳夊垪琛ㄧ殑緙╄繘鏃?br /> 鏍峰紡搴斿啓鎴?list-style:none;margin:0px;padding:0px;

鍏朵腑margin灞炴уIE鏈夋晥錛宲adding灞炴уFireFox鏈夋晥

22. CSS閫忔槑
IE錛歠ilter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=60)銆?/p>

FF錛歰pacity:0.6銆?/p>

23. CSS鍦嗚
IE錛氫笉鏀寔鍦嗚銆?/p>

FF錛?-moz-border-radius:4px錛屾垨鑰?moz-border-radius-topleft:4px;-moz-border- radius-topright:4px;-moz-border-radius-bottomleft:4px;-moz-border-radius- bottomright:4px;銆?/p>

24. CSS鍙岀嚎鍑瑰嚫杈規(guī)
IE錛歜order:2px outset;銆?/p>

FF錛?-moz-border-top-colors: #d4d0c8 white;-moz-border-left-colors: #d4d0c8 white;-moz-border-right-colors:#404040 #808080;-moz-border-bottom-colors:#404040 #808080;

25錛巌e鏀寔document.all 鑰宖irefox 涓嶆敮鎸?br /> 鏀圭敤涓嬮潰涓変釜tag鐨勫叾涓竴涓潵浠f浛document.all
getElementsByTagName("tagName") 鍙互寰楀埌寰楀埌鎵鏈夋爣絳懼厓绱犵殑闆嗗悎
getElementById("idName")          鍙互鎸塱d寰楀埌鏌愪竴鍏冪礌
getElementsByName("Name")            鍙互寰楀埌鎸塶ame灞炴у緱鍒版煇涓鍏冪礌

26銆乫irefox 涓嬌鐢╥nnerHTML 鐨勬柟娉?br /> <div id="online"></div>
document.all.online.innerHTML; //榪欑鏂規(guī)硶鍦↖E涓彲浠ヤ嬌鐢紝浣嗕笉鏄爣鍑嗘柟娉?br /> document.getElementById("online").innerHTML; //榪欐牱firefox灝辮兘浣跨敤innerHTML浜?/p>

27銆乪val()涓巜indow.execScript()鎵ц鑴氭湰
IE銆乫irerox鍧囨敮鎸乪val()錛宖irefox涓嶆敮鎸亀indow.execScript()

瑙e喅錛氱粺涓浣跨敤eval()

28銆佸浜嬩歡澶勭悊鍑芥暟鐨勯噸鍐?br /> 瑙e喅錛氾紙渚嬶級(jí):濡傚document鐨刼nclick()閲嶅啓錛岀粺涓浣跨敤document.onclick = function(){…}

 



]]>
js鐦﹁韓鏈夐亾--閫夊ソ鍚堥傜殑鍑忚偉鑽?/title><link>http://www.tkk7.com/goodlyts/archive/2008/06/19/209033.html</link><dc:creator>嫻佽叆楸?/dc:creator><author>嫻佽叆楸?/author><pubDate>Wed, 18 Jun 2008 16:45:00 GMT</pubDate><guid>http://www.tkk7.com/goodlyts/archive/2008/06/19/209033.html</guid><wfw:comment>http://www.tkk7.com/goodlyts/comments/209033.html</wfw:comment><comments>http://www.tkk7.com/goodlyts/archive/2008/06/19/209033.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/goodlyts/comments/commentRss/209033.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/goodlyts/services/trackbacks/209033.html</trackback:ping><description><![CDATA[<p>        鐜板湪鐨勭郴緇熶負(fù)浜嗗緱鍒版洿濂界殑鐢ㄦ埛浣撻獙錛岄兘鍔犲叆浜哸jax鐨勭壒鏁堬紝鍙鐢ㄥ埌浜哸jax鐨勪唬鐮侊紝灝變細(xì)寮曟潵涓澶у爢js浠g爜錛岃繖浜涗唬鐮佸叾瀹炰篃鎸哄崰鐢ㄥ甫瀹界殑錛屼負(fù)浜嗕嬌緗戦〉鍔犺澆寰楁洿蹇紝鍐沖畾鍦ㄩ」鐩腑鎵嶇敤緗戜笂嫻佽鐨刯s鍘嬬緝鍣ㄦ潵鍘嬬緝浠g爜銆傚帇緙╁悗鐨勪唬鐮佸熀鏈彲浠ユ娊鎺?0%宸﹀彸鐨勮剛鑲?br />  <br />         鎵懼埌鍑犱釜鍘嬬緝鍣紝鍙戠幇寰堝鍘嬬緝鍣ㄥ帇緙╁悗鐨刯s浠g爜閮藉嚭鐜拌繖鏍鋒垨閭f牱鐨勯棶棰?br /> <br /> <span style="color: #ff0000;">ESC 1.14   <a >http://www.saltstorm.net/depo/esc/?pod=js</a>   鍘嬬緝鍚庢湁浜涗腑鏂囦細(xì)鍑虹幇闂彿錛堟垜鐨刯s浠g爜鏄敤utf-8鏍煎紡錛?br /> jsmin <a >http://www.crockford.com/javascript/jsmin.html</a>   鍘嬬緝鍚庢湁浜涗腑鏂囦細(xì)鍑虹幇闂彿<br /> dean edwards鐨刾acker <a >http://dean.edwards.name/packer/</a> 鍘嬬緝鍚庣殑js浠g爜浼?xì)鍑虹幇閮ㄥ垎鍒嗗忎h垨澶ф嫭鍙蜂涪澶憋紝瀵艱嚧璇硶閿欒</span><br /> <br /> 鏈鍚庢壘鍒頒簡yuicompressor-2.3.4 <a >http://developer.yahoo.com/yui/compressor/</a> 鎰熻寰堝ソ鐢紝鍘嬬緝鍚庢棤鎹熶唬鐮侊紝鑰屼笖榪瀋ss涔熷彲浠ュ帇緙╋紝鍘嬬緝鐨勬椂鍊欏緢澶氬弬鏁板彲浠ヨ緗紝鍙互鍒跺畾js浠g爜鐨勭紪鐮佹牸寮忕瓑錛宩ava榪愯錛屾湰浜哄啓浜嗕竴涓猙at鎵瑰鐞嗛亶鍘嗗埗瀹氭枃浠跺す閲岄潰鐨勬墍鏈塲s鍜宑ss鏂囦歡榪涜鍘嬬緝銆?br /> <br /> 欏圭洰涓敤鍒扮綉涓婃祦琛岀殑ext2 js搴擄紝鎵浠ラ」鐩腑鏈夊緢澶歫s浠g爜錛屼簬鏄啓鐨刡at閬嶅巻鏂囦歡鍘嬬緝浠g爜<br /> <br /> </p> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000;">(dir </span><span style="color: #000000;">%</span><span style="color: #000000;">1</span><span style="color: #000000;"> </span><span style="color: #000000;">/</span><span style="color: #000000;">aa </span><span style="color: #000000;">/</span><span style="color: #000000;">b </span><span style="color: #000000;">/</span><span style="color: #000000;">s  </span><span style="color: #000000;">|</span><span style="color: #000000;"> findstr </span><span style="color: #000000;">/</span><span style="color: #000000;">e </span><span style="color: #000000;">/</span><span style="color: #000000;">c:</span><span style="color: #000000;">"</span><span style="color: #000000;">js</span><span style="color: #000000;">"</span><span style="color: #000000;">) </span><span style="color: #000000;">></span><span style="color: #000000;">tmp.txt<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff;">for</span><span style="color: #000000;"> </span><span style="color: #000000;">/</span><span style="color: #000000;">f </span><span style="color: #000000;">%%</span><span style="color: #000000;">i in (tmp.txt) </span><span style="color: #0000ff;">do</span><span style="color: #000000;"> java </span><span style="color: #000000;">-</span><span style="color: #000000;">jar yuicompressor</span><span style="color: #000000;">-</span><span style="color: #000000;">2.3</span><span style="color: #000000;">.</span><span style="color: #000000;">4</span><span style="color: #000000;">.jar </span><span style="color: #000000;">--</span><span style="color: #000000;">type js </span><span style="color: #000000;">--</span><span style="color: #000000;">charset utf</span><span style="color: #000000;">-</span><span style="color: #000000;">8</span><span style="color: #000000;"> </span><span style="color: #000000;">-</span><span style="color: #000000;">o </span><span style="color: #000000;">%%</span><span style="color: #000000;">i.tmp </span><span style="color: #000000;">%%</span><span style="color: #000000;">i  </span><span style="color: #000000;">&</span><span style="color: #000000;"> copy </span><span style="color: #000000;">%%</span><span style="color: #000000;">i</span><span style="color: #000000;">"</span><span style="color: #000000;">.tmp</span><span style="color: #000000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">%%</span><span style="color: #000000;">i </span><span style="color: #000000;">&</span><span style="color: #000000;"> del </span><span style="color: #000000;">%%</span><span style="color: #000000;">i</span><span style="color: #000000;">"</span><span style="color: #000000;">.tmp</span><span style="color: #000000;">"</span><span style="color: #000000;"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />(dir </span><span style="color: #000000;">%</span><span style="color: #000000;">1</span><span style="color: #000000;"> </span><span style="color: #000000;">/</span><span style="color: #000000;">aa </span><span style="color: #000000;">/</span><span style="color: #000000;">b </span><span style="color: #000000;">/</span><span style="color: #000000;">s  </span><span style="color: #000000;">|</span><span style="color: #000000;"> findstr </span><span style="color: #000000;">/</span><span style="color: #000000;">e </span><span style="color: #000000;">/</span><span style="color: #000000;">c:</span><span style="color: #000000;">"</span><span style="color: #000000;">css</span><span style="color: #000000;">"</span><span style="color: #000000;">) </span><span style="color: #000000;">></span><span style="color: #000000;">tmp.txt<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff;">for</span><span style="color: #000000;"> </span><span style="color: #000000;">/</span><span style="color: #000000;">f </span><span style="color: #000000;">%%</span><span style="color: #000000;">i in (tmp.txt) </span><span style="color: #0000ff;">do</span><span style="color: #000000;"> java </span><span style="color: #000000;">-</span><span style="color: #000000;">jar yuicompressor</span><span style="color: #000000;">-</span><span style="color: #000000;">2.3</span><span style="color: #000000;">.</span><span style="color: #000000;">4</span><span style="color: #000000;">.jar </span><span style="color: #000000;">--</span><span style="color: #000000;">type css </span><span style="color: #000000;">--</span><span style="color: #000000;">charset utf</span><span style="color: #000000;">-</span><span style="color: #000000;">8</span><span style="color: #000000;"> </span><span style="color: #000000;">-</span><span style="color: #000000;">o </span><span style="color: #000000;">%%</span><span style="color: #000000;">i.tmp </span><span style="color: #000000;">%%</span><span style="color: #000000;">i  </span><span style="color: #000000;">&</span><span style="color: #000000;"> copy </span><span style="color: #000000;">%%</span><span style="color: #000000;">i</span><span style="color: #000000;">"</span><span style="color: #000000;">.tmp</span><span style="color: #000000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">%%</span><span style="color: #000000;">i </span><span style="color: #000000;">&</span><span style="color: #000000;"> del </span><span style="color: #000000;">%%</span><span style="color: #000000;">i</span><span style="color: #000000;">"</span><span style="color: #000000;">.tmp</span><span style="color: #000000;">"</span><span style="color: #000000;"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></div> <p><br /> 淇濆瓨涓?nbsp; jscompressor.bat 榪愯鐨勬椂鍊欏湪杈撳叆 jscompressor <path>  (<path>鏄垜浠寚瀹氱殑璺緞) 灝卞彲浠ユ壒閲忚繘琛屽帇緙╋紝鍘嬬緝鍚庢浛鎹㈠帇緙╁墠鐨勪唬鐮併?/p> <p><br /> <br /> 涓嬮潰鏄竴浜涘弬鏁扮殑璇存槑銆?/p> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000;">==============================================================================</span><span style="color: #000000;"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />YUI Compressor<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000;">==============================================================================</span><span style="color: #000000;"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />NAME<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  YUI Compressor </span><span style="color: #000000;">-</span><span style="color: #000000;"> The Yahoo</span><span style="color: #000000;">!</span><span style="color: #000000;"> JavaScript and CSS Compressor<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />SYNOPSIS<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  Usage: java </span><span style="color: #000000;">-</span><span style="color: #000000;">jar yuicompressor</span><span style="color: #000000;">-</span><span style="color: #000000;">x.y.z.jar [options] [input file]<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  Global Options<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #000000;">-</span><span style="color: #000000;">h, </span><span style="color: #000000;">--</span><span style="color: #000000;">help                Displays </span><span style="color: #0000ff;">this</span><span style="color: #000000;"> information<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #000000;">--</span><span style="color: #000000;">type </span><span style="color: #000000;"><</span><span style="color: #000000;">js</span><span style="color: #000000;">|</span><span style="color: #000000;">css</span><span style="color: #000000;">></span><span style="color: #000000;">           Specifies the type of the input file<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #000000;">--</span><span style="color: #000000;">charset </span><span style="color: #000000;"><</span><span style="color: #000000;">charset</span><span style="color: #000000;">></span><span style="color: #000000;">       Read the input file using </span><span style="color: #000000;"><</span><span style="color: #000000;">charset</span><span style="color: #000000;">></span><span style="color: #000000;"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #000000;">--</span><span style="color: #000000;">line</span><span style="color: #000000;">-</span><span style="color: #0000ff;">break</span><span style="color: #000000;"> </span><span style="color: #000000;"><</span><span style="color: #000000;">column</span><span style="color: #000000;">></span><span style="color: #000000;">     Insert a line </span><span style="color: #0000ff;">break</span><span style="color: #000000;"> after the specified column number<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #000000;">-</span><span style="color: #000000;">v, </span><span style="color: #000000;">--</span><span style="color: #000000;">verbose             Display informational messages and warnings<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #000000;">-</span><span style="color: #000000;">o </span><span style="color: #000000;"><</span><span style="color: #000000;">file</span><span style="color: #000000;">></span><span style="color: #000000;">                 Place the output into </span><span style="color: #000000;"><</span><span style="color: #000000;">file</span><span style="color: #000000;">></span><span style="color: #000000;">. Defaults to stdout.<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  JavaScript Options<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #000000;">--</span><span style="color: #000000;">nomunge                 Minify only, </span><span style="color: #0000ff;">do</span><span style="color: #000000;"> not obfuscate<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #000000;">--</span><span style="color: #000000;">preserve</span><span style="color: #000000;">-</span><span style="color: #000000;">semi           Preserve all semicolons<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><span style="color: #000000;">--</span><span style="color: #000000;">disable</span><span style="color: #000000;">-</span><span style="color: #000000;">optimizations   Disable all micro optimizations<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />DESCRIPTION<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  The YUI Compressor is a JavaScript compressor which, in addition to removing<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  comments and white</span><span style="color: #000000;">-</span><span style="color: #000000;">spaces, obfuscates local variables using the smallest<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  possible variable name. This obfuscation is safe, even when using constructs<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  such as </span><span style="color: #000000;">'</span><span style="color: #000000;">eval</span><span style="color: #000000;">'</span><span style="color: #000000;"> or </span><span style="color: #000000;">'</span><span style="color: #000000;">with</span><span style="color: #000000;">'</span><span style="color: #000000;"> (although the compression is not optimal is those<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  cases) Compared to jsmin, the average savings is around </span><span style="color: #000000;">20</span><span style="color: #000000;">%</span><span style="color: #000000;">.<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  The YUI Compressor is also able to safely compress CSS files. The decision<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  on which compressor is being used is made on the file extension (js or css)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />GLOBAL OPTIONS<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #000000;">-</span><span style="color: #000000;">h, </span><span style="color: #000000;">--</span><span style="color: #000000;">help<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      Prints help on how to use the YUI Compressor<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #000000;">--</span><span style="color: #000000;">line</span><span style="color: #000000;">-</span><span style="color: #0000ff;">break</span><span style="color: #000000;"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      Some source control tools don</span><span style="color: #000000;">'</span><span style="color: #000000;">t like files containing lines longer than,</span><span style="color: #000000;"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000;">      say </span><span style="color: #000000;">8000</span><span style="color: #000000;"> characters. The linebreak option is used in that </span><span style="color: #0000ff;">case</span><span style="color: #000000;"> to split<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff;">long</span><span style="color: #000000;"> lines after a specific column. It can also be used to make the code<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      more readable, easier to debug (especially with the MS Script Debugger)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      Specify </span><span style="color: #000000;">0</span><span style="color: #000000;"> to get a line </span><span style="color: #0000ff;">break</span><span style="color: #000000;"> after each semi</span><span style="color: #000000;">-</span><span style="color: #000000;">colon in JavaScript, and<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      after each rule in CSS.<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #000000;">--</span><span style="color: #000000;">type js</span><span style="color: #000000;">|</span><span style="color: #000000;">css<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      The type of compressor (JavaScript or CSS) is chosen based on the<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      extension of the input file name (.js or .css) This option is required<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> no input file has been specified. Otherwise, </span><span style="color: #0000ff;">this</span><span style="color: #000000;"> option is only<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      required </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> the input file extension is neither </span><span style="color: #000000;">'</span><span style="color: #000000;">js</span><span style="color: #000000;">'</span><span style="color: #000000;"> nor </span><span style="color: #000000;">'</span><span style="color: #000000;">css</span><span style="color: #000000;">'</span><span style="color: #000000;">.<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #000000;">--</span><span style="color: #000000;">charset character</span><span style="color: #000000;">-</span><span style="color: #000000;">set<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      If a supported character set is specified, the YUI Compressor will use it<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      to read the input file. Otherwise, it will assume that the platform</span><span style="color: #000000;">'</span><span style="color: #000000;">s</span><span style="color: #000000;"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #000000;">      </span><span style="color: #0000ff;">default</span><span style="color: #000000;"> character set is being used. The output file is encoded using<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      the same character set.<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #000000;">-</span><span style="color: #000000;">o outfile<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      Place output in file outfile. If not specified, the YUI Compressor will<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff;">default</span><span style="color: #000000;"> to the standard output, which you can redirect to a file.<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #000000;">-</span><span style="color: #000000;">v, </span><span style="color: #000000;">--</span><span style="color: #000000;">verbose<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      Display informational messages and warnings.<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />JAVASCRIPT ONLY OPTIONS<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #000000;">--</span><span style="color: #000000;">nomunge<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      Minify only. Do not obfuscate local symbols.<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #000000;">--</span><span style="color: #000000;">preserve</span><span style="color: #000000;">-</span><span style="color: #000000;">semi<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      Preserve unnecessary semicolons (such as right before a </span><span style="color: #000000;">'</span><span style="color: #000000;">}</span><span style="color: #000000;">'</span><span style="color: #000000;">) This option<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      is useful when compressed code has to be run through JSLint (which is the<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      </span><span style="color: #0000ff;">case</span><span style="color: #000000;"> of YUI </span><span style="color: #0000ff;">for</span><span style="color: #000000;"> example)<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #000000;">--</span><span style="color: #000000;">disable</span><span style="color: #000000;">-</span><span style="color: #000000;">optimizations<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />      Disable all the built</span><span style="color: #000000;">-</span><span style="color: #000000;">in micro optimizations.<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></div> <p><br /> <br /> <br /> <br />  </p> <img src ="http://www.tkk7.com/goodlyts/aggbug/209033.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/goodlyts/" target="_blank">嫻佽叆楸?/a> 2008-06-19 00:45 <a href="http://www.tkk7.com/goodlyts/archive/2008/06/19/209033.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://78555yy.com" target="_blank">国产又黄又爽又猛的免费视频播放</a>| <a href="http://35419470.com" target="_blank">国产成人高清精品免费鸭子 </a>| <a href="http://youketech.com" target="_blank">久久91亚洲精品中文字幕</a>| <a href="http://lfhotline.com" target="_blank">美丽姑娘免费观看在线观看中文版 </a>| <a href="http://sdbfgcjx.com" target="_blank">日韩精品免费视频</a>| <a href="http://yy975.com" target="_blank">亚洲色在线无码国产精品不卡</a>| <a href="http://carsmp.com" target="_blank">亚洲国产精品嫩草影院久久</a>| <a href="http://bogygames.com" target="_blank">国产精品免费观看调教网</a>| <a href="http://91xx8.com" target="_blank">亚洲AV无码一区二区三区电影</a>| <a href="http://chch12.com" target="_blank">亚洲精品无码久久久久sm</a>| <a href="http://cfxzp.com" target="_blank">无码高潮少妇毛多水多水免费</a>| <a href="http://8mav950.com" target="_blank">一级做a爰片性色毛片免费网站 </a>| <a href="http://www66susu.com" target="_blank">一级特黄a免费大片</a>| <a href="http://600c63.com" target="_blank">亚洲麻豆精品果冻传媒</a>| <a href="http://yy12345.com" target="_blank">免费国产综合视频在线看</a>| <a href="http://pumanpig.com" target="_blank">美丽姑娘免费观看在线观看中文版</a>| <a href="http://91xqq.com" target="_blank">国产精品亚洲专区无码牛牛</a>| <a href="http://583s.com" target="_blank">无码乱人伦一区二区亚洲一</a>| <a href="http://959901cc.com" target="_blank">日本高清色本免费现在观看</a>| <a href="http://fenxiangceo.com" target="_blank">免费一级毛片无毒不卡</a>| <a href="http://xfmkt.com" target="_blank">立即播放免费毛片一级</a>| <a href="http://9ytx.com" target="_blank">亚洲免费电影网站</a>| <a href="http://6000cpkj.com" target="_blank">国产亚洲av人片在线观看</a>| <a href="http://schygfz.com" target="_blank">免费看香港一级毛片</a>| <a href="http://tskes.com" target="_blank">最近免费中文字幕mv电影</a>| <a href="http://tbw77.com" target="_blank">一级毛片视频免费观看</a>| <a href="http://hqwgg.com" target="_blank">一本天堂ⅴ无码亚洲道久久</a>| <a href="http://www-135888.com" target="_blank">亚洲国产成人久久精品影视</a>| <a href="http://guanxianedu.com" target="_blank">全黄性性激高免费视频</a>| <a href="http://dd99com.com" target="_blank">69式国产真人免费视频</a>| <a href="http://gujingyuye.com" target="_blank">国产成人免费AV在线播放</a>| <a href="http://zjlxblog.com" target="_blank">水蜜桃视频在线观看免费</a>| <a href="http://tjbdyx.com" target="_blank">亚洲avav天堂av在线网爱情</a>| <a href="http://qq367.com" target="_blank">av在线亚洲欧洲日产一区二区</a>| <a href="http://001mc.com" target="_blank">夭天干天天做天天免费看</a>| <a href="http://bet06966.com" target="_blank">99久久免费看国产精品</a>| <a href="http://guilinsix.com" target="_blank">成人免费av一区二区三区</a>| <a href="http://139699.com" target="_blank">美女扒开尿口给男人爽免费视频</a>| <a href="http://51huanxin.com" target="_blank">亚洲日韩中文字幕</a>| <a href="http://zzzttt669.com" target="_blank">亚洲日本在线观看</a>| <a href="http://anhuish.com" target="_blank">久久亚洲国产中v天仙www </a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>