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

JavaScript ÅжÏÎļþÊÇ·ñ´æÔÚ

1. ¿Í»§¶Ë //Ö÷ÒªÕë¶Ô±¾µØIEä¯ÀÀÆ÷·ÃÎÊ
<script
language="javascript">
function FileExist()
{
     var sfso=new
ActiveXObject("Scripting.FileSystemObject");
     var fPath="[The path of the
file]";
     if(sfso.FileExists(fPath))
     {
         
alert("Exist");
     }
     else
     {
          alert("Doesn't
exist");
     }
}
</script>
2.
·þÎñÆ÷¶Ë//Ô¶³Ìä¯ÀÀÆ÷·ÃÎʺͱ¾µØFirefox·ÃÎÊ
<script
language="javascript">
function FileExist()
{
     var xmlhttp=new
ActiveXObject("Microsoft.XMLHTTP");
     xmlhttp.open("GET",FileURL,false);
     xmlhttp.send();
     if(xmlhttp.readyState==4)
     {   
          if(xmlhttp.status==200)
alert("Exist");   
          else if(xmlhttp.status==404) alert("Doesn't
exist");
          else alert("Don't know");  
     }
}
</script>
»òÕß
<script language="JavaScript">
function fileExists(file)
{
if(window.XMLHttpRequest)
{
   xmlhttp=new XMLHttpRequest();
     if(xmlhttp.overrideMimeType) 
     {
     xmlhttp.overrideMimeType('text/xml');
     }
   }
   else if(window.ActiveXObject)
   {
   try
   {
     xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
     }
     catch (e)
  


Ïà¹ØÎĵµ£º

Javascript[ת]


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

javascript:history.go()ºÍHistory.back()µÄÇø±ðÊÕ²Ø

<input   type=button   value=ˢР  onclick="window.location.reload()">  
  <input   type=button   value=ǰ½ø   onclick="window.history.go(1)">  
  <input   type=button   value=ºóÍË   onclick="window.history.go(-1)"> ......

»ùÓÚJavaScriptºÍCSSµÄWebͼ±í¿ò¼ÜºáÏò¶Ô±È

jQuery, MooTools, Prototype µÈÓÅÐãµÄ JavaScript ¿ò¼ÜÓµÓи÷ÖÖÇ¿´óµÄ¹¦ÄÜ£¬°üÀ¨»æÖÆ Web ͼ±í£¬Ê¹ÓÃÕâЩ¿ò¼ÜÒÔ¼°ÏàÓ¦²å¼þ£¬ÎÒÃÇ¿ÉÒԷdz£ÇáËɵØÊµÏÖÇúÏßͼ£¬Ô²±ýͼ£¬Öù״ͼµÈ Web ͼ±íµÄ»æÖÆ£¬¶ø²»±ØÏóÒÔÍùÄÇÑùͨ¹ý¸´Ô Flash ¼¼ÊõʵÏÖ¡£±¾ÎĽéÉÜÁË9¸öÓÅÐãµÄ»ùÓÚ JavaScript Óë CSS µÄ Web ͼ±í¿ò¼Ü¡£ 1. Flot Flot ......

JavaScript¾«´â¶ÁÊé±Ê¼Ç(8)

µÚ8Õ  ·½·¨
JavaScript°üº¬ÁËÉÙÁ¿¿ÉÓÃÔÚ±ê×¼ÀàÐÍÉϵıê×¼·½·¨¡£
Array
array.concat(item…)
concat·½·¨·µ»ØÒ»¸öÐÂÊý×飬Ëü°üº¬arrayµÄdz¸´ÖÆ(shallow copy)²¢½«1¸ö»ò¶à¸ö²ÎÊýitem¸½¼ÓÔÚÆäºó¡£Èç¹û²ÎÊýitemÊÇÒ»¸öÊý×飬ÄÇôËüµÄÿ¸öÔªËØ»á±»·Ö±ðÌí¼Ó¡£´ËÍ⣬Çë²Î¼û±¾ÕºóÃæµÄarray.push(item…)·½·¨¡ ......

javaScriptµÄcalleeÊôÐÔ

      jsµÄFunction¶ÔÏóÔÚµ÷Óùý³ÌÖоßÓÐÒ»¸öarguomentsÊôÐÔ£¬ËüÊÇÓɽű¾½âÊÍÆ÷´´½¨µÄ£¬ÕâÒ²ÊÇ´´½¨arguments¶ÔÏóΨһ;¾¶¡£arguments¶ÔÏó¿ÉÒÔ¿´×öÊÇÒ»¸öArray¶ÔÏó£¬Ëü¾ßÓÐlengthÊôÐÔ£¬¿ÉÒÔͨ¹ýÐòºÅ·ÃÎÊÿһ¸ö²ÎÊý¡£¶øÇÒ£¬Í¨¹ýarguments µÄcalleeÊôÐÔ¿ÉÒÔ»ñÈ¡¶ÔÖ»ÔÚÖ´ÐеÄFunction¶ÔÏóµÄÒýÓã¬ÈçÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ