<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
Ïà¹ØÎÊ´ð£º
<a href="deleteIn.do?iid= <%=inForm.getInId()%>" >ɾ³ý </a>
µã»÷ɾ³ýºóÒªÌáʾÊÇ·ñɾ³ý
Ôõô¸ã°¡
function onclick(){
if(confirm("ÊÇ·ñҪɾ³ý& ......
JScript code:
<form id="myform" name="myform">
<input type='hidden' name='maxp' value='6'></input>
<input type='text' id='pageinput' onkeydown="if(e ......
<script language="javascript">
function printdate(){
var now=new Date();
var year=now.getYear();
var month=now.getMonth();
&n ......
·¢ÏÖJavaScriptµÄ
IEºÍFirefox¼æÈÝÌرðÄѸ㡣¡£
ÓÐûÓкÃÓõÄÊÓƵ»òÎÄÕ½éÉÜѽ£¿
http://hi.baidu.com/1004/blog/item/c9bda7ef0db88814fcfa3c45.html
¿´¿´~·ÕâÀﶼÊǽéÉÜѧϰjavascriptµÄÍø ......
var a="some";
var b="some";
ÔõôÅÐ¶Ï a ºÍ b ÊDz»ÊÇÏàµÈѽ£¬
(ÓÃ==ºÃÏñ²»ÐÐ)
if (a!=b)
alert("×Ö·û²»·û")
else
alert("×Ö·ûÏàͬ")
if(a==b)¿ ......