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

javascriptµ¥»÷ʼþÎÊÌâ

  <script language="javascript">
          var clkCount = 0;
    function inputTestClick()
  {  
    var inputTest = document.getElementById('inputTest');
    inputTest.value = clkCount ;
    clkCount ++;
            }
  </script>
            <ul>
      <li  onmousedown="inputTestClick();">value²âÊÔ </li>
              <li> <input    type="text" id="inputTest" name="inputTest"> </li>         
            </ul>

´úÂëÈçÉÏ£¬µ±µã»÷value²âÊÔʱ£¬µ÷ÓÃonClick´¦Àí·½·¨£¬½«clkCount ±äÁ¿¼Ó1£¬È»ºóÔÚinputTestÖÐÏÔʾ³öÀ´¡£°´µÀÀíÀ´Ëµ£¬Õâô¼òµ¥µÄ·½·¨£¬Ó¦¸ÃÎÞÂÛµã»÷¶à¿ì£¬¶¼»áÀ´µÃ¼°´¦Àí£¬¾Í²»»á˵Éϴεĵã»÷û´¦ÀíÍ꣬Äã¾ÍÓÖµã»÷ÁË£¬ÏÖÔÚ»úÆ÷µÄcpuÁ¬Õâµã´¦ÀíÄÜÁ¦»¹ÊÇÓеġ£µ«ÊÇÔÚIEÉÏ£¨ie6,ie7£©²âÊÔ£¬·¢ÏÖ¿ìËÙµã»÷ʱ£¬»á¶ªÊ§Ò»°ë×óÓҵĵã»÷£¬¼´¿ìËÙµã»÷5Ï£¬½á¹ûÏÔʾΪ2¡£Í¬ÑùµÄ´úÂ룬ÔÚfirfoxÉϲâÊÔ£¬Ò»´Î¶¼Ã»ÓжªÊ§£¬¿ìËÙµã»÷¶àÉٴζ¼²»»á¡£ÄѵÀÊÇÆÆIEÓÐʲôÏÞÖÆ£¿°Ù˼²»µÃÆä½â£¬Íû¸ßÈ˽â´ðÒɻ󣬸м¤²»¾¡¡£¡£

ie  ÀÏ벡

ÓÃonmouseup

ÒýÓÃ
ÓÃonmouseup


Ïà¹ØÎÊ´ð£º

Óà javascriptɾ³ýÒ»¸öÁ´½Ó

<a href="deleteIn.do?iid= <%=inForm.getInId()%>" >ɾ³ý </a>

µã»÷ɾ³ýºóÒªÌáʾÊÇ·ñɾ³ý 
Ôõô¸ã°¡
function onclick(){
  if(confirm("ÊÇ·ñҪɾ³ý& ......

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

JScript code:

<form id="myform" name="myform">
<input type='hidden' name='maxp' value='6'></input>
<input type='text' id='pageinput' onkeydown="if(e ......

JavaScriptÈÕÆÚ£¬½ñÌì9.29£¬ËüÏÔʾ8.2

<script language="javascript">
function printdate(){
    var now=new Date();
    var year=now.getYear();
    var month=now.getMonth();
&n ......

³õѧJavaScript£¬Ë­ÄÜÍƼöµãÊÓƵ»òÎÄÕÂ÷᣿

·¢ÏÖJavaScriptµÄ
IEºÍFirefox¼æÈÝÌرðÄѸ㡣¡£
ÓÐûÓкÃÓõÄÊÓƵ»òÎÄÕ½éÉÜѽ£¿

http://hi.baidu.com/1004/blog/item/c9bda7ef0db88814fcfa3c45.html

¿´¿´~·ÕâÀﶼÊǽéÉÜѧϰjavascriptµÄÍø ......

javascript ×Ö·û ±È½ÏÎÊÌâ

var a="some";
var b="some";
ÔõôÅÐ¶Ï a ºÍ b ÊDz»ÊÇÏàµÈѽ£¬
(ÓÃ==ºÃÏñ²»ÐÐ)

if (a!=b)
alert("×Ö·û²»·û")
else
alert("×Ö·ûÏàͬ")

if(a==b)¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ