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=""
Ïà¹ØÎĵµ£º
±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔÀ´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷ÔÒò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......
prototype¾«²Ê×ÊÁÏ£º
"javascriptÖ®prototype" http://www.cnblogs.com/zouhaijian/archive/2009/03/29/1424592.html(ºÜ¼òÔ¼µ«ÇåÎúµÄ½²ÊöÁËprototypeµÄÓÃ;)
"JavaScript¶ÔÏóÄ£ÐÍ-Ö´ÐÐÄ£ÐÍ" http://w ......
ÐèÒªÔËÐл·¾³£º.net framework 3.0¼°ÒÔÉÏÔËÐл·¾³Ö§³Ö¡£
ÓÐϲ»¶µÄ¿´¿´°É£¬
ÄÚ¸½¾«ÐÄÖÆ×÷µÄJSЧ¹ûµÄ»ÃµÆƬ£¨Ö÷ҪʹÓÃjQuery¿â£©£¬ÒÔ¼°Æä°ïÖú£¬ÑÝʾ£¬´úÂë¿ÉÒÔÏÂÔØ£¬¹¤¾ßÃâ·ÑʹÓá£
ÏÂÔصØÖ·£ºhttp://www.codeex.cn/blog/article.asp?id=62 ......
< a href =
"#"
onClick =
"javascript:window.external.AddFavorite(document.URL,document.title);return
false"
rel=
"sidebar"
> Êղر¾Ò³ </ a >
È¡µÃµ±Ç°Ò³µÄURL: document.URL
È¡µÃµ±Ç°Ò³µÄtitle: document.title
ʵÏÖÔÚFirefoxÖГÊÕ
²Ø±¾Ò ......
Ê×ÏÈÉèÖÃIE, ÒÀ´ÎÑ¡Ôñ ¹¤¾ß-> Internet Ñ¡Ïî-> ¸ß¼¶, ÕÒµ½ ä¯ÀÀ ϵÄÁ½¸ö½ûÓýű¾µ÷ÊÔ¸´Ñ¡¿ò, ½«ÆäÈ¡ÏûÑ¡Ôñ(IEĬÈϽ«ÕâÁ½ÏîÑ¡ÖÐ, ²»ÄܽøÐнű¾µ÷ÊÔ),
1. µ÷ÊÔJS½Å±¾Îļþ(*.jsÎļþ)
Ö±½ÓÔÚJSÎļþÖÐF9ÉèÖöϵã, F5ÔËÐе÷ÊÔ¼´¿É.
2. µ÷ÊÔÒ³ÃæÎļþÖнű¾(*.aspxÖÐJS½Å±¾)
......