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

javascript ±Õ°üÎÊÌâ

<script type="text/javascript">
    var name = "The Window";

¡¡¡¡ var object = {
¡¡¡¡¡¡¡¡name : "My Object",

¡¡¡¡¡¡¡¡getNameFunc : function(){
¡¡¡¡¡¡¡¡¡¡¡¡return function(){
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡return this.name;
¡¡¡¡¡¡¡¡¡¡¡¡};
¡¡¡¡¡¡¡¡}
¡¡¡¡ };
    alert(object.getNameFunc()());  //Ö´ÐкóµÄ½á¹ûΪ£ºThe Window
    </script>

  Çë½Ì¸ßÊÖÖ´ÐкóµÄ½á¹ûΪʲô»áÊÇThe Window£¿
thisÖ¸ÏòµÄÊÇwindow¶ÔÏó

Â¥ÉÏÕý½â.²»¹ýÎÒÏêϸ¸øÄã˵Ã÷ϺÃÁË

JScript code:

var name = "The Window";

¡¡¡¡ var object = {
¡¡¡¡¡¡¡¡name : "My Object",

¡¡¡¡¡¡¡¡getNameFunc : function(){
¡¡¡¡¡¡¡¡¡¡¡¡return function(){ //Èç¹ûÕâÀïÖ±½Óreturn this.name,Äǵõ½Õâ¸öreturnµÄhandleÊÇobject

//¶ÔÏó,Ãû×Ö¾ÍÊÇ"My Object",µ«ÊÇÄãreturnÁ˸öfunction,ËùÒÔÏÂÃæµ÷ÓõÄʱºòÏ൱ÓÚÊÇ
//Ö´ÐÐÁËwindow.getNameFunc()(),ÕâÀï´«Èë½øÈ¥this¾Í±ä³ÉwindowµÄname¶ÔÏó,Ò²¾ÍÊÇÈ«¾Ö±äÁ¿
//"The Window.
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡return this.name;
¡¡¡¡¡¡¡¡¡¡¡¡};
¡¡¡¡¡¡¡¡}
¡¡¡¡ };
alert(object.getNameFunc()()); //Ö´ÐкóµÄ½á¹ûΪ£ºThe Window



¶àл¸ßÊÖµÄÖ¸½Ì£¬csdnÉϵÄÅ£ÈËÕæ¶à£¡



  var name="The Window";

¡¡¡¡var


Ïà¹ØÎÊ´ð£º

ActiveXºÍJavaScriptµÄ½»»¥ÎÊÌâ

    ÎÊÌâÃèÊöÈçÏ£º
    ÓÃC#¿ª·¢µÄActiveXǶÈëÍøÒ³ÖУ¬¸ÃActiveXÖÐÓÐÒ»¸ö°´Å¥button1.ÏÖÔÚҪʹµÃÓû§µ¥»÷ÁËbutton1ºóʵÏÖÒ³ÃæÌøתµÄ¹¦ÄÜ£¬¼´Óɵ±Ç°µÄ1.htmÌøתµ½2.htm¡£
    Î ......

javascriptÊÇʵÏÖ¶¯Ì¬Ä¿Â¼Ê÷µÄºÃ·½·¨Ã´£¿

Çë½Ì¸÷λ¸ßÊÖ£¬¶¯Ì¬Ä¿Â¼Ê÷ÓÃʲô¼¼ÊõʵÏֱȽϺÃÄØ£¿×îºÃÊÇÄÜÍ϶¯µÄÄÇÖÖ£¬±ÈÈç¿ÉÒÔ°Ñij¸ö½ÚµãÍ϶¯µ½ÁíÒ»¸ö½ÚµãÏ£¬Ñùʽ¾ÍÏó×ÊÔ´¹ÜÀíÆ÷Ò»Ñù£¿¡«¡«
ÓÃjavascriptÈçºÎÄØ£¿Äܲ»Äܸøµã²Î¿¼×ÊÁÏ
Çë´ó¼Ò°ïæ¸øµãÒâ¼û£ ......

ÐÂÈËjavascriptÎÊÌâÇóÖú£¬Çë¸÷λ´ó¸ç´ó½ãÃÇÀ´°ï棡

ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......

javascriptµÄ¼òµ¥ÔËËã

function Place14a(myform)
{
  var str,i;
  str = "&nbsp;";
  if(!fnIsIntNum(myform.Place14_Num.value))
      myform.Place14_Num.value=1; ......

javascriptÖеÄÁ½¸öÎÊÌâÇë½Ì£¬Ð»Ð»

1.¿´µ½¡¶¾«Í¨javascript¡·ÉÏ˵£ºjavascriptÊÇÍêÈ«Òì²½µÄ£¬ÄÇôÊDz»ÊÇÿÌõÓï¾ä¶¼²»»áÖ´ÐÐÍ꣬ÏÂÌõÓï¾ä¾Í¿ªÊ¼Ö´ÐÐÄØ£¬Êµ¼ÊÉϲ»ÊÇÕâÑù£¬Ò²²»¿ÉÄÜÊÇÕâÑù£¬²»È»Ôõôд³ÌÐò£¿
2.´úÂëÈçÏ£¬ÎªÊ²Ã´²»¿ÉÐÐÄØ£º
JScript ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ