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
Ïà¹ØÎÊ´ð£º
ÎÊÌâÃèÊöÈçÏ£º
ÓÃC#¿ª·¢µÄActiveXǶÈëÍøÒ³ÖУ¬¸ÃActiveXÖÐÓÐÒ»¸ö°´Å¥button1.ÏÖÔÚҪʹµÃÓû§µ¥»÷ÁËbutton1ºóʵÏÖÒ³ÃæÌøתµÄ¹¦ÄÜ£¬¼´Óɵ±Ç°µÄ1.htmÌøתµ½2.htm¡£
Î ......
Çë½Ì¸÷λ¸ßÊÖ£¬¶¯Ì¬Ä¿Â¼Ê÷ÓÃʲô¼¼ÊõʵÏֱȽϺÃÄØ£¿×îºÃÊÇÄÜÍ϶¯µÄÄÇÖÖ£¬±ÈÈç¿ÉÒÔ°Ñij¸ö½ÚµãÍ϶¯µ½ÁíÒ»¸ö½ÚµãÏ£¬Ñùʽ¾ÍÏó×ÊÔ´¹ÜÀíÆ÷Ò»Ñù£¿¡«¡«
ÓÃjavascriptÈçºÎÄØ£¿Äܲ»Äܸøµã²Î¿¼×ÊÁÏ
Çë´ó¼Ò°ïæ¸øµãÒâ¼û£ ......
ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......
function Place14a(myform)
{
var str,i;
str = " ";
if(!fnIsIntNum(myform.Place14_Num.value))
myform.Place14_Num.value=1;
......
1.¿´µ½¡¶¾«Í¨javascript¡·ÉÏ˵£ºjavascriptÊÇÍêÈ«Òì²½µÄ£¬ÄÇôÊDz»ÊÇÿÌõÓï¾ä¶¼²»»áÖ´ÐÐÍ꣬ÏÂÌõÓï¾ä¾Í¿ªÊ¼Ö´ÐÐÄØ£¬Êµ¼ÊÉϲ»ÊÇÕâÑù£¬Ò²²»¿ÉÄÜÊÇÕâÑù£¬²»È»Ôõôд³ÌÐò£¿
2.´úÂëÈçÏ£¬ÎªÊ²Ã´²»¿ÉÐÐÄØ£º
JScript ......