Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

js javascript:void(0) ÕæÕýº¬Òå

ÎÒÏëʹÓùýajaxµÄ¶¼³£¼ûÕâÑùµÄ´úÂ룺
<a href="javascript:doTest2();void(0);">here</a>
µ«Õâ¶ùµÄvoid(0)¾¿¾¹ÊǺκ¬ÒåÄØ£¿
JavascriptÖÐvoidÊÇÒ»¸ö²Ù×÷·û£¬¸Ã²Ù×÷·ûÖ¸¶¨Òª¼ÆËãÒ»¸ö±í´ïʽµ«ÊDz»·µ»ØÖµ¡£
void ²Ù×÷·ûÓ÷¨¸ñʽÈçÏ£º
1. javascript:void (expression)
2. javascript:void expression
expression ÊÇÒ»¸öÒª¼ÆËãµÄ Javascript ±ê×¼µÄ±í´ïʽ¡£±í´ïʽÍâ²àµÄÔ²À¨ºÅÊÇÑ¡µÄ£¬µ«ÊÇдÉÏÈ¥ÊÇÒ»¸öºÃÏ°¹ß¡£ (ʵÏÖ°æ±¾   Navigator 3.0   )
ÄãÒÔʹÓà void ²Ù×÷·ûÖ¸¶¨³¬¼¶Á´½Ó¡£±í´ïʽ»á±»¼ÆË㵫ÊDz»»áµ±Ç°Îĵµ´¦×°ÈëÈκÎÄÚÈÝ¡£
ÏÂÃæµÄ´úÂë´´½¨ÁËÒ»¸ö³¬¼¶Á´½Ó£¬µ±Óû§ÒԺ󲻻ᷢÉúÈκÎÊ¡£µ±Óû§Á´½Óʱ£¬void(0) ¼ÆËãΪ 0£¬µ« Javascript ÉÏûÓÐÈκÎЧ¹û¡£
<A HREF="javascript:void(0)">µ¥´Ë´¦Ê²Ã´Ò²²»»á·¢Éú</A>
ÏÂÃæµÄ´úÂë´´½¨ÁËÒ»¸ö³¬¼¶Á´½Ó£¬Óû§µ¥Ê±»áÌá½»±íµ¥¡£
<A HREF="javascript:void(document.form.submit())">
µ¥´Ë´¦Ìá½»±íµ¥</A>
a href=#Óë a href=javascript:void(0) µÄÇø±ð Á´½ÓµÄ¼¸ÖÖ°ì·¨
#°üº¬ÁËÒ»¸öλÖÃÐÅÏ¢
ĬÈϵÄêÊÇ#top Ò²¾ÍÊÇÍøÒ³µÄÉ϶Ë
¶øjavascript:void(0)   ½ö½ö±íʾһ¸öËÀÁ´½Ó
Õâ¾ÍÊÇΪʲôÓеÄʱºòÒ³ÃæºÜ³¤ä¯ÀÀÁ´½ÓÃ÷Ã÷ÊÇ#ÊÇ
Ìø¶¯µ½ÁËÒ³Ê×
¶øjavascript:void(0) Ôò²»ÊÇÈç´Ë
ËùÒÔµ÷Óýű¾µÄʱºò×îºÃÓÃvoid(0)
»òÕß<input onclick>
<div onclick>µÈ
Á´½ÓµÄ¼¸ÖÖ°ì·¨
1.window.open(''url'')
2.ÓÃ×Ô¶¨Ò庯Êý
         <script>
         function openWin(tag,obj)
         {
             obj.target="_blank";
             obj.href = "Web/Substation/Substation.aspx?stationno="+tag;
             obj.click();
         }
        </script>
<a href="javascript:void(0)" onclick="openWin(3,this)">ÖêÖÞ</a>
window.location.href=""


Ïà¹ØÎĵµ£º

javascriptЧÂʾ­Ñé̸(Ò»)

±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔ­À´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾­Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾­¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷Ô­Òò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......

[JavaScript] ¡¶¾«Í¨JavaScript¡·Ñ§Ï°£¨ËÄ£©~ÃæÏò¶ÔÏó

     
     prototype¾«²Ê×ÊÁÏ£º
     "javascriptÖ®prototype" http://www.cnblogs.com/zouhaijian/archive/2009/03/29/1424592.html(ºÜ¼òÔ¼µ«ÇåÎúµÄ½²ÊöÁËprototypeµÄÓÃ;)
     "JavaScript¶ÔÏóÄ£ÐÍ-Ö´ÐÐÄ£ÐÍ" http://w ......

¡¾Ô­´´¡¿JavaScript»ÃµÆƬСʵÀý¼°½Ì³Ì£¨JsBox v1.2£©

ÐèÒªÔËÐл·¾³£º.net framework 3.0¼°ÒÔÉÏÔËÐл·¾³Ö§³Ö¡£
ÓÐϲ»¶µÄ¿´¿´°É£¬
ÄÚ¸½¾«ÐÄÖÆ×÷µÄJSЧ¹ûµÄ»ÃµÆƬ£¨Ö÷ҪʹÓÃjQuery¿â£©£¬ÒÔ¼°Æä°ïÖú£¬ÑÝʾ£¬´úÂë¿ÉÒÔÏÂÔØ£¬¹¤¾ßÃâ·ÑʹÓá£
ÏÂÔصØÖ·£ºhttp://www.codeex.cn/blog/article.asp?id=62 ......

Êղر¾Ò³¹¦ÄܵÄJavascript´úÂë ¼æÈÝIEºÍFirefoxµÄ

< a href =
"#"
 
onClick =
"javascript:window.external.AddFavorite(document.URL,document.title);return
false"
rel=
"sidebar"
> Êղر¾Ò³ </ a >
È¡µÃµ±Ç°Ò³µÄURL: document.URL
È¡µÃµ±Ç°Ò³µÄtitle: document.title
ʵÏÖÔÚFirefoxÖГÊÕ
²Ø±¾Ò ......

VS2005ÈçºÎµ÷ÊÔaspxÖÐJavaScript½Å±¾

Ê×ÏÈÉèÖÃIE,   ÒÀ´ÎÑ¡Ôñ ¹¤¾ß-> Internet   Ñ¡Ïî->   ¸ß¼¶, ÕÒµ½ ä¯ÀÀ ϵÄÁ½¸ö½ûÓýű¾µ÷ÊÔ¸´Ñ¡¿ò, ½«ÆäÈ¡ÏûÑ¡Ôñ(IEĬÈϽ«ÕâÁ½ÏîÑ¡ÖÐ, ²»ÄܽøÐнű¾µ÷ÊÔ), 
1. µ÷ÊÔJS½Å±¾Îļþ(*.jsÎļþ)
Ö±½ÓÔÚJSÎļþÖÐF9ÉèÖöϵã, F5ÔËÐе÷ÊÔ¼´¿É.
2. µ÷ÊÔÒ³ÃæÎļþÖнű¾(*.aspxÖÐJS½Å±¾) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ