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

JavaScript_Ñ­»·26¸öÓ¢ÎÄ×ÖĸµÄ·½·¨

×î½üÔÚCSDNÉÏÓÐÈËÎÊ£¬ÔõôÓÃJSÑ­»·26¸öÓ¢ÎÄ×Öĸ£¬Ï붼ûÏ룬дÏÂÒÔÏ´úÂë
<script type="text/javascript">
<!--
var character = new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","X","Y","Z");
for(var i=0;i<25;i++)
{
alert(character[i]);
}
// -->
</script>

ºóÀ´ÓÖ¿´µ½ÓÐÁíÍâµÄ½â´ð£¬ºÜ²»´í£¬±ÈÎҵķ½·¨ÇÉÃî¶àÁË£¬ÌؼǼ֮~~
<script type="text/javascript">
<!--
for(var i=0;i<25;i++)
{
alert(String.fromCharCode((65+i)));
}
// -->
</script>


Ïà¹ØÎĵµ£º

Javascript: setTimeout()ʹÓü° setInterval()ʹÓÃ

Evaluates an expression after a specified number of milliseconds has elapsed.
(ÔÚÖ¸¶¨Ê±¼ä¹ýºóÖ´ÐÐÖ¸¶¨µÄ±í´ïʽ)
Syntax:
iTimerID = window.setTimeout(vCode, iMilliSeconds [, sLanguage])
Parameters
vCode
Required. Variant that specifies the function pointer or string that indicates the code to be ......

javascriptÓÅ»¯·½·¨

ÐÞ¸ÄÑ­»·µÄÖ´Ðз½Ê½
for(var i=0;i<element.childNodes.length;i++){
Ö´ÐдúÂë
}
ÕâÖÖ·½Ê½Ã¿´ÎÑ­»·¶¼ÒªÈ¡element.childNodes.lengthµÄÖµ£¬Ó¦¸Ã¸ÄΪÈçϵÄ
var n£½element.childNodes.length
for(var i=0;i<n;i++){
Ö´ÐдúÂë
}
2£ºÐÞ¸Ädom²Ù×÷µÄ´ÎÊý
domÅúÁ¿²åÈëÒ»ÅúÀàËƵĽڵ㲻ÈçÏȹ¹ÔìÒ»¸ö¶ÔÏó£¬ ......

10¸öÓÅÐãµÄAjaxºÍJavascript¹úÍâ×ÊÔ´ÍøÕ¾

10¸öÓÅÐãµÄAjaxºÍJavascript¹úÍâ×ÊÔ´ÍøÕ¾
תÔصØÖ·£ºhttp://www.zzsky.cn/build/content/1246.htm
        1¡¢Ajax Rain: http://www.ajaxrain.com
¡¡¡¡AjaxRainÓкܶàÍêÃÀÕûºÏAjax¡¢CSS¡¢DHTML»òJavascriptµÄʵÀý£¬ÓÐһЩDemoµÄÈ·ÖµµÃÄãÈ¥¿´Ò»¿´£¬¼´Ê¹Äã²»ÊÇÍøÒ³Éè¼Æ£¨¿ª·¢£©Ê¦¡ ......

Javascript Êý×éѧϰһÔò

1. Ó¦ÓàArray.prototype.joinʵÏÖ×Ö·ûºÏ²¢
·½·¨1.
String.prototype.times = function(n) {
    return Array.prototype.join.call({length:n+1}, this);
};
"js".times(5)   // => "jsjsjsjsjs"
·½·¨2.
 var ArrayTest=new Array("HE","LL","O");
 var hello = Array.prot ......

ÀûÓÃjavaScript¶¯Ì¬Ôö¼Ó±í¸ñÐУ¬É¾³ý±í¸ñÐÐ

ʾÀý£º
- - - - - - - - - - - -
<body>
<input type="button" value="create" onclick="createTr();">
<table border='1' id="t" >
</table>
<input type="button" value="Ìá½»" onclick="okss();" />
</body>
<script type="text/javascript">
  &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ