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

javascript»ñÈ¡µ±Ç°µçÄÔ²Ù×÷ϵͳµÄÎļþ·¾¶µÄ·½Ê½

<script language="javascript" type=text/javascript>
var fso;
fso = new ActiveXObject("Scripting.FileSystemObject");
function SystemSpecialFolder(Special)
{
   var tfolder,  TemporaryFolder = Special;//0: Windows ²Ù×÷ϵͳ°²×°µÄÎļþ;1:°üº¬¿â¡¢×ÖÌ壬ÒÔ¼°É豸Çý¶¯³ÌÐòµÄ System Îļþ¼Ð;2:´æ´¢ÁÙʱÎļþµÄ Temp Îļþ¼Ð;
   tfolder = fso.GetSpecialFolder(TemporaryFolder);
   return(tfolder);
}
var Special=0;
document.write(SystemSpecialFolder(Special)+"<br>");
Special=1;
document.write(SystemSpecialFolder(Special)+"<br>");
Special=2;
document.write(SystemSpecialFolder(Special));
</script>


Ïà¹ØÎĵµ£º

javascriptЧÂʾ­Ñé̸(Ò»)

±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔ­À´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾­Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾­¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷Ô­Òò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......

javascriptѧϰÈÕÖ¾Èý

1¡¢¶ÔÏóÊôÐÔ£º.lengthΪ³¤¶ÈÊôÐÔ£¬
         .toUpperCase()Ϊ´óд×ÖĸÎı¾
2¡¢indexofº¯Êý·½·¨·µ»Ø×Ö·û´®ÄÚµÚÒ»´Î³öÏÖ×Ö·û´®µÄ×Ö·ûλÖã¬×Ö·û´®µÄλÖôÓ0¿ªÊ¼£¬Èç¹ûûÓÐÕÒµ½×Ó×Ö·û´®£¬Ôò·µ»Ø-1
3¡¢match()·½·¨¿ÉÓÃÀ´ÕÒµ½×Ö·û´®ÖÐÌض¨µÄ×Ö·û£¬Èç¹ûÕÒµ½Ôò·µ»ØÕâ¸ö×Ö·û£¬Èç¹ûûÓÐ ......

JavaScriptÌâÐÍ

 1£®ÈçºÎ»ñÈ¡±íµ¥<select>ÓòµÄÑ¡Ôñ²¿·ÖµÄÎı¾£¿
<form name="a">
<select name="a" size="1" onchange="_sel(this)">
<option value="a">1</option>
<option value="b">2</option>
<option value="c">3</option>
< ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ