Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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:"\@ËÎÌå" ......

a href="javascript:if(confirm(


a href="javascript:if(confirm(
ÐüÉÍ·Ö£º0 - ½â¾öʱ¼ä£º2008-9-25 13:58
a href="javascript:if(confirm('http://hunter.51rc.com/ \n\nÎļþ²¢Î´ÒÀ Teleport Pro È¡»Ø£¬ÒòΪ ËüµÄÓò»ò·¾¶³¬¹ý¿ªÊ¼ÍøÖ·ÖÐÉèÖõķ¶Î§¡£ \n\nÄãÒª´Ó·þÎñÆ÷ÉÏ´ò¿ªËüÂð£¿'))window.location='http://hunter.51rc.com/'" tppabs="http://h ......

ÍæÍ¸javascriptµ¯³ö´°¿Ú

ÍæÍ¸javascriptµ¯³ö´°¿Ú
--------------------------------------------------------------------------------


¡¡¡¡¾­³£ÉÏÍøµÄÅóÓÑ¿ÉÄܻᵽ¹ýÕâÑùÒ»Ð©ÍøÕ¾£¬Ò»½øÈëÊ×Ò³Á¢¿Ì»áµ¯³öÒ»¸ö´°¿Ú£¬»òÕß°´Ò»¸öÁ¬½Ó»ò°´Å¥µ¯³ö£¬Í¨³£ÔÚÕâ¸ö´°¿ÚÀï»áÏÔʾһЩעÒâÊÂÏî¡¢°æÈ¨ÐÅÏ¢¡¢¾¯¸æ¡¢»¶Ó­¹â¹ËÖ®ÀàµÄ»°»òÕß×÷ÕßÏëÒªÌØ±ðÌáʾµ ......

JavaScriptÖÐÄäÃûº¯Êý£¬º¯ÊýÖ±½ÓÁ¿ºÍ±Õ°ü(ת)

Ô­Îijö´¦: http://www.dnew.cn/post/196.htm
ÏÈ¿´ÏÂÏÂÃæ¼¸ÖÖд·¨
1.function f(x){return x*x;};f(x);
2.(function(x){return x*x;})(x);
3.(function(x){return x*x;}(x));
µÚÒ»ÖÖÎÒÃÇÓ¦¸Ã¶¼ºÜÊìϤÁË£¬ÕâÊÇÎÒÃǾ­³£Ê¹ÓõÄд·¨¡£µÚ¶þµÚÈýÖÖ¶¼ÊÇÄäÃûº¯ÊýµÄд·¨¡£
------------------------------------------------ ......

Javascript±Õ°ü(Closure)

ClosureÖÐÎÄ·­ÒëΪ±Õ°ü.×ÖÃæÉÏÀ´Àí½â¾ÍÊÇ"·â±ÕµÄ°ü".(ÕâÊÇÒ»¾ä·Ï»°)
±Õ°üÊÇʲô?
ÊéÃæ½âÊÍΪ: Ëùν“±Õ°ü”£¬Ö¸µÄÊÇÒ»¸öÓµÓÐÐí¶à±äÁ¿ºÍ°ó¶¨ÁËÕâЩ±äÁ¿µÄ»·¾³µÄ±í´ïʽ£¨Í¨³£ÊÇÒ»¸öº¯Êý£©£¬Òò¶øÕâЩ±äÁ¿Ò²ÊǸñí´ïʽµÄÒ»²¿·Ö¡£
ÎÒÈÏΪ±Õ°ü¾ÍÊÇÄܹ»¶Á/дº¯ÊýÄÚ²¿µÄijЩ±äÁ¿µÄ×Óº¯Êý,²¢½«ÕâЩ±äÁ¿±£´æÔÚÄÚ´æÖÐ.
± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ