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

ÉñÆæµÄJavascript BUG¡£Çó¸ßÊÖÖ¸µã£¡

JScript code:

<form id="myform" name="myform">

<input type='hidden' name='maxp' value='6'></input>
<input type='text' id='pageinput' onkeydown="if(event.keyCode==13)
{
alert(document.getElementById('pageinput').value ==10);
alert(document.getElementsByName('maxp')[0].value ==6);
alert(10<=6);
alert(document.getElementById('pageinput').value <= document.getElementsByName('maxp')[0].value);
return false;
}" name='pageinput' size=2 maxlength=2>

</form>


µ±ÄãÔÚÎı¾¿òÖÐÊäÈë10£¬°´»Ø³µºó£¬Äã»á·¢ÏÖµÚ4¸öµ¯³öÌáʾ¾¹È»ÊÇtrue£¬Ì«ÉñÆæÁË£¬Ð¡µÜ°Ù˼²»µÃÆä½â£¬10Ôõô»áСÓÚ6ÄØ£¿Íû¸ßÊÖÖ¸µãСµÜÃÔ½ò¡£¸Ð¼¤Á÷Ì飡¼±£¬ÔÚÏߵȡ£
HTML code:

<form id="myform" name="myform">

<input type='hidden' name='maxp' value='6'></input>
<input type='text' id='pageinput' onkeydown="if(event.keyCode==13)
{
alert(document.getElementById('pageinput').value ==10);
alert(document.getElementsByName('maxp')[0].value ==6);
alert(10<=6);
alert(parseFloat(document.getElementById('pageinput').value) <= parseFloat(document.getElementsByName('maxp')[0].value));
return false;
}" name='pageinput' size=2 maxlength=2>

</form>



Ïà¹ØÎÊ´ð£º

JavaScript Çë½Ì

ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(),this.ClientID, " <script language=\"javascript\" type=\"text/javascript\"> if(confirm('ÐèÒªÖ±½Ó ......

ÇóÒ»¸öÓÃÕýÔò±í´ïʽʵÏÖ¼òµ¥ÑéÖ¤µÄJavaScript´úÂë

ÈçÓÐÒ»¸ötextbox£¬Óû§ÊäÈëºóµãbutton°´Å¥Ê±£¬ÊµÏÖÓÃJavaScript¶ÔtextboxÊäÈëÐÅÏ¢µÄÑéÖ¤£¬ÒªÇóÓÃJavaScriptÀ´ÊµÏÖ£¬±ÈÈçÑéÖ¤Óû§ÊäÈëµÄÊÇ·ñÊÇÊý×Ö¡£
Ï£Íû½«HTML´úÂëÒ»²¢Ð´³öÀ´¹þ£¬Ð»Ð»
HTML code:

<!DOC ......

Çójavascript treeview

ÈçÌ⣬ÇóÒ»¸ö¿ª·ÅÔ´´úÂ룬×îºÃÓÐÎĵµµÄtreeview£¬¹¦ÄÜ×îºÃÍêÕûµã£¬ÎÒÉÏÍøÕÒÁËһϣ¬²»ÈÝÒ×ÕÒ£¬ÌصØÔÚÕâÀïÇóÁË¡£

·¢µ½ÎÒÓÊÏäÈ¥£¬Èç¹û²»ÊǺܴóµÄ»°£¬fulongchi@163.com£¬Ð»Ð»¡£

ÒýÓÃ
·¢µ½ÎÒÓÊÏäÈ¥£¬Èç¹û²»ÊǺ ......

javascriptµÄ¼¶Áª²Ù×÷

ÈçºÎÔÚjavascript½Å±¾ÖлñµÃ´ÓactionÖд«µÄ¼¯ºÏÖµ£¬ÔÚÒÔÏÂÀ­ÁбíµÄ¼¶ÁªÏÔʾ£¬ÈçºÎ²Ù×÷£¬ÎÒÒ»Ö±¶¼Ã»ÏëÃ÷°×£¬Çë´ó¼Ò°ï°ï棬лл¡£ÈçºÎÓÐʾÀý£¬Âé·³´«Ò»·Ý£¬Ð»Ð»¡£
ÓÃajax×ö

²»ÓÃAJAXÒ²¿ÉÒÔ£¡

ÓÃjavascriptÔõô ......

ActiveXºÍJavaScriptµÄ½»»¥ÎÊÌâ

    ÎÊÌâÃèÊöÈçÏ£º
    ÓÃC#¿ª·¢µÄActiveXǶÈëÍøÒ³ÖУ¬¸ÃActiveXÖÐÓÐÒ»¸ö°´Å¥button1.ÏÖÔÚҪʹµÃÓû§µ¥»÷ÁËbutton1ºóʵÏÖÒ³ÃæÌø×ªµÄ¹¦ÄÜ£¬¼´Óɵ±Ç°µÄ1.htmÌø×ªµ½2.htm¡£
    Î ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ