javascript:void(0)
½ñÌì¿´µ½¡¶AJAX¿ª·¢¼òÂÔ¡·ÖÐËùÓеÄ<A href>¶¼Óõ½ÁËjavascript:void(0)
½ñÌì¿´ÁËÒ»ÏÂÔÀ´Õâ¸ö±í´ïʽµÄ×÷ÓþÍÊÇÈõ±Ç°Õâ¸ö³¬Á´½Ó³ÉΪһ¸öËÀÁ´½Ó£¬¾ÍÊÇʲô¶¼²»×÷¡£
ÒÔÏÂÕª×Ô£º
http://blog.csdn.net/mouyong/archive/2007/01/24/1491761.aspx
±ðÈËЩµÄJavaScript½Å±¾¿ÉÒÔ¿´µ½ÕâÑùµÄ´úÂ룺
<a href="javascript:doTest2();void(0);">here</a>
µ«Õâ¶ùµÄvoid(0)¾¿¾¹ÊǺκ¬ÒåÄØ£¿
JavaScriptÖÐvoidÊÇÒ»¸ö²Ù×÷·û£¬¸Ã²Ù×÷·ûÖ¸¶¨Òª¼ÆËãÒ»¸ö±í´ïʽµ«ÊDz»·µ»ØÖµ¡£
void ²Ù×÷·ûÓ÷¨¸ñʽÈçÏ£º
1. javascript:void (expression)
2. javascript:void expression
expression ÊÇÒ»¸öÒª¼ÆËãµÄ JavaScript ±ê×¼µÄ±í´ïʽ¡£±í´ïʽÍâ²àµÄÔ²À¨ºÅÊÇ¿ÉÑ¡µÄ£¬µ«ÊÇдÉÏÈ¥ÊÇÒ»¸öºÃÏ°¹ß¡£
Äã¿ÉÒÔʹÓà void ²Ù×÷·ûÖ¸¶¨³¬¼¶Á´½Ó¡£±í´ïʽ»á±»¼ÆË㵫ÊDz»»áÔÚµ±Ç°Îĵµ´¦×°ÈëÈκÎÄÚÈÝ¡£
ÏÂÃæµÄ´úÂë´´½¨ÁËÒ»¸ö³¬¼¶Á´½Ó£¬µ±Óû§µã»÷ÒԺ󲻻ᷢÉúÈκÎÊ¡£µ±Óû§µã»÷Á´½Óʱ£¬void(0) ¼ÆËãΪ 0£¬µ«ÔÚ JavaScript ÉÏûÓÐÈκÎЧ¹û¡£
<A HREF="javascript:void(0)">µ¥»÷´Ë´¦Ê²Ã´Ò²²»»á·¢Éú</A>
ÏÂÃæµÄ´úÂë´´½¨ÁËÒ»¸ö³¬¼¶Á´½Ó£¬Óû§µ¥»÷ʱ»áÌá½»±íµ¥¡£
<A HREF="javascript:void(document.form.submit())">µ¥»÷´Ë´¦Ìá½»±íµ¥</A>
ÒÔÏÂת×Ô£º
http://www.cnblogs.com/xiang/archive/2006/09/05/495828.html
££°üº¬ÁËÒ»¸öλÖÃÐÅϢĬÈϵÄêµãÊÇ££top Ò²¾ÍÊÇÍøÒ³µÄÉ϶Ë,¶øjavascript:void(0) ½ö½ö±íʾһ¸öËÀÁ´½Ó.Õâ¾ÍÊÇΪʲôÓеÄʱºòÒ³ÃæºÜ³¤ä¯ÀÀÁ´½ÓÃ÷Ã÷ÊÇ££¿ÉÊÇÌø¶¯µ½ÁËÒ³Ê×,¶øjavascript:void(0) Ôò²»ÊÇÈç´ËËùÒÔµ÷Óýű¾µÄʱºò×îºÃÓÃvoid(0),»òÕß<input onclick><div onclick>µÈ.
ÒÔÏÂÕª×Ô£º
http://bbs.blueidea.com/thread-2694666-1-1.html
void ÔËËã·û
±ÜÃâ±í´ïʽ·µ»ØÖµ¡£
void expression
expression ²ÎÊýÊÇÈÎÒâÓÐЧµÄ JScript ±í´ïʽ¡£
˵Ã÷
void ÔËËã·û¶Ô±í´ïʽÇóÖµ£¬²¢·µ»Ø undefined¡£ÔÚÏ£ÍûÇó±í´ïʽµÄÖµ£¬µ«ÓÖ²»Ï£Íû½Å±¾µÄÊ£Óಿ·Ö¿´¼ûÕâ¸ö½á¹ûʱ£¬¸ÃÔËËã·û×îÓÐÓá£
Ïà¹ØÎĵµ£º
¾¼¸Ìì˼¿¼£¬Ïëµ½Ò»¸ö½Ð¡°ÎļþÓëÄ£¿é¡±µÄÎÊÌâ¡£ÎÒÃǵÄÄ£¿é¿Ï¶¨Ð´ÔÚÒ»¸öJSÎļþÖУ¬ÕâЩģ¿éÓÖ¿ÉÒÔ·ÖΪºËÐÄÄ£¿éÓëÍâΧģ¿é¡£ºËÐÄÄ£¿éµ±È»Ð´ÔÚÖ÷ÎļþÖУ¬ËüÓ¦¸Ã°üº¬×îÖØÒªµÄÂß¼£¬¼ÓÔØÆ÷£¬Áжӣ¬ÃüÃû¿Õ¼ä¹¹ÔìÆ÷µÈµÈ¡£µ«Èç¹ûÒ»¸öÎļþÖ»´æÔÚÒ»¸öÄ£¿éÕâҲ̫ÀË·ÑÁË£¬¶øÇһᵼÖÂÇëÇ󷨹ý¶à£¬Òò´Ë³öÏÖ¶à¸öÄ£¿é¡°¹²Éú¡±ÓÚÒ»¸öÎļþµÄÇé ......
ÔÚjavascriptº¯ÊýÌåÄÚ£¬±êʶ·ûarguments¾ßÓÐÌØÊ⺬Òå¡£ËüÊǵ÷ÓöÔÏóµÄÒ»¸öÌØÊâÊôÐÔ£¬ÓÃÀ´ÒýÓÃArguments¶ÔÏó¡£Arugments¶ÔÏó¾ÍÏñÊý×飬עÒâÕâÀïÖ»ÊÇÏñ²¢²»Êǹþ¡£
javascriptº¯ÊýÌåÄÚ£¬argumentsÏñÊý×é(²¢²»ÊÇÕæµÄÊý×飬ÊÇÒ»¸öArguments¶ÔÏó£¬ÔÙ´ÎÇ¿µ÷)Ò»Ñù£¬ÓÐlengthÊôÐÔ£¬¿ÉÒÔ´ú±í´«¸øº¯ÊýµÄ²ÎÊýµÄ¸öÊý¡£
ÒýÓÃÒ»¸öÐÎʽ²ÎÊ ......
ºÜ¾µäµÄÒ»¸öËã·¨£¬Ñ§Ï°…ing… £º
<!-- ÖйúÅ©Àú¿ªÊ¼ -->
<SCRIPT language=JavaScript>
<!--
var lunarInfo=new Array(
0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2,
0x04ae0,0x0a5b6,0x0a4d0,0x0d25 ......
function
getVerificationCode()//È¡µÃÑéÖ¤Âë
{
var
para =
new
Array(
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"7"
,
"8"
,
"9"
,
&nbs ......
ÔÚ½øÈëÕýÌâÇ°£¬ÎÒÃÇ¿´Ò»ÏÂä¯ÀÀÆ÷¶ÔÓÚ¼üÅ̵ÄһЩĬÈÏʼþ£¬ÕâÓÐÖúÓÚÎÒÃÇÓÃjavascript½Ø»ñ¼üÅÌʼþ¡£
ÔÚformÖУ¬ submitµÄ¿ì½Ý¼üÊÇ enter£¬resetµÄ¿ì½Ý¼üÊÇ esc¡£²»¹ýÔÚ
IE6,safari4,ff3.5,opera10,chromeÖÐ
£¬°´Enter£¬²»µ«¼¤·¢formµÄsubmitʼþ£¬Í¬Ê±Ò²»á¼¤·¢
Ìá½»°´Å¥µÄonclick£¬¼¤·¢Ë³ÐòΪÌá½»°´Å¥µÄ onclick &rarr ......