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

±ßѧ±ß̸ javascriptµÄðºÅ

×òÌì¿´µ½Ò»¸öjs  ·¢ÏÖ obj=£ûa£º"123",b:"abc",objfunction:function(){...}£ý ÕâÑùµÄÓï¾ä£¬Óеã·Ñ½â
ÏÖÔÚ°Ñ´ÓÊéÉϺÍÍøÉÏÕÒµ½µÄÒ»µã¶«Î÷Ìù³öÀ´  ×ÔÓÃ&¹²Ïí
javascriptµÄðºÅ  ÓÃ;£º
1¡¢switchÓï¾ä·ÖÖ§
 
     switch (s) { 
                  case Ìõ¼þ1:
                         Óï¾ä1;
                         break; 
                  case Ìõ¼þ2:
                         Óï¾ä2;
                         break;
                 }
2¡¢?:  ÈýÔª±í´ïʽ   
          a>b? "L":"S"
3¡¢ÉùÃ÷¶ÔÏóÖ±½ÓÁ¿µÄ³ÉÔ±
 Ê²Ã´ÊǶÔÏóÖ±½ÓÁ¿£¿
¶ÔÏóÖ±½ÓÁ¿£¨Ò²³ÆÎª¶ÔÏó³õʼ»¯³ÌÐò£©ÊÇÓÉÒ»¸öÁÐ±í¹¹³ÉµÄ£¬Õâ¸öÁбíµÄÔªËØÊÇÓÃðºÅ·Ö¸ôµÄÊôÐÔ/Öµ¶Ô£¬ÔªËØÖ®¼äÓöººÅ¸ô¿ªÁË£¬Õû¸öÁбí°üº¬ÔÚ»¨À¨ºÅÖ®ÖС£
javascriptÖеĶÔÏó¿ÉÒÔÏñC#¡¢JAVAÕâÐ©ÃæÏò¶ÔÏóµÄÓïÑÔÖеĶÔÏóÒ»Ñù£¬ÓµÓÐÊôÐԺͷ½·¨¡£
´´½¨javascript¶ÔÏóÓкܶàÖÖ·½·¨,
ÀýÈç·½·¨Ò»£¬¿ÉÒÔÓÃObject´´½¨£¬
 
var obj1 = new Object();
obj1.X = "100px";
obj1.Y = "200px";
obj1.myFunction = function() { alert("¶ÔÏóµÄ·½·¨ myFunction() !"); };
obj1.myFunction();
»òÕß·½·¨¶þ
½Å±¾ÓïÑÔÓкܶ࣬³ýÁËjavascriptÖ®Í⣬Ҳ¿ÉÒÔÓÃÆäËü½Å±¾ÓïÑÔÀ´ÊµÏÖjavascriptËùÄÜʵÏֵŦÄÜ;
Àý£º
<input type="button" onclick="vb


Ïà¹ØÎĵµ£º

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

µÚ5ÕÂ
 
¼Ì³Ð
ÔÚÄÇЩ»ùÓÚÀàµÄÓïÑÔ£¨±ÈÈç
Java
£©ÖУ¬¼Ì³Ð£¨
inheritance
»ò
extends
£©ÌṩÁËÁ½¸öÓÐÓõķþÎñ¡£Ê×ÏÈ£¬ËüÊÇ´úÂëÖØÓõÄÒ»ÖÖÐÎʽ¡£Èç¹ûÒ»¸öеÄÀàÓëÒ»¸öÒÑ´æÔÚµÄÀà´ó²¿·ÖÏà
ËÆ£¬ÄÇôÄãÖ»Ðë¾ßÌå˵Ã÷Æä²»Í¬µã¼´¿É¡£Àà¼Ì³ÐµÄÁíÒ»¸öºÃ´¦ÊÇËü°üÀ¨ÁËÒ»Ì×ÀàÐÍϵͳµÄ¹æ·¶¡£ÓÉÓÚ³ÌÐòÔ±ÎÞÐë±àдÏÔʽÀàÐÍת ......

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

µÚ9ÕÂ
 
´úÂë·ç¸ñ
¼ÆËã»ú³ÌÐòÊÇÈËÀàÖÆÔì³öÀ´µÄ×
ÔÓµÄÊÂÎï¡£³ÌÐòͨ³£Óɺܶಿ·Ö×é³É£¬±íÏÖΪº¯Êý¡¢Óï¾äºÍ±í´ïʽ£¬ËüÃDZØÐë׼ȷÎÞÎ󵨰´ÕÕ˳ÐòÅÅÁС£×îÖյĽá¹û¼¸ºõ¶¼ºÍʵÏÖËüµÄ³ÌÐòûÓÐʲôÏàËÆÖ®´¦¡£ÔÚÈí
¼þµÄ²úÆ·ÉúÃüÖÜÆÚÖУ¬Í¨³£ËüÃǶ¼»á±»Ð޸ġ£°ÑÒ»¸öÕýÈ·µÄ³ÌÐòת»¯ÎªÁíÒ»¸öͬÑùÕýÈ·µ«·ç¸ñ²»Í¬µÄ³ÌÐò£¬ÊÇ ......

JavaScript¾«´â(4 2)

http://blog.csdn.net/mouyong/archive/2009/12/07/4959827.aspx
4.9   ×÷ÓÃÓò
ÔÚ±à³ÌÓïÑÔÖУ¬×÷ÓÃÓò¿ØÖÆ×űäÁ¿Óë²ÎÊýµÄ¿É¼ûÐÔ¼°ÉúÃüÖÜÆÚ¡£¶Ô³ÌÐòÔ±À´ËµÕâÊÇÒ»¸öÖØÒªµÄ°ïÖú£¬ÒòΪËü¼õÉÙÁËÃû³Æ³åÍ»£¬²¢ÇÒÌṩÁË×Ô¶¯ÄÚ´æ¹ÜÀí¡£
´ó¶àÊýʹÓÃCÓïÑÔÓï·¨µÄÓïÑÔ¶¼ÓµÓп鼶×÷ÓÃÓò¡£ÔÚÒ»¸ö´úÂë¿éÖУ¨À¨ÔÚÒ»¶Ô»¨À¨ºÅ ......

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


http://blog.csdn.net/mouyong/archive/2010/01/31/5275562.aspx
µÚ7Õ  ÕýÔò±í´ïʽ
JavaScriptµÄÐí¶àÌØÐÔ¶¼½è¼ø×ÔÆäËûÓïÑÔ¡£Óï·¨½è¼ø×ÔJava£¬º¯Êý½è¼ø×ÔScheme£¬Ô­ÐÍ¼Ì³Ð½è¼ø×ÔSelf¡£¶øJavaScriptµÄÕýÔò±í´ïÊ½ÌØÐÔÔò½è¼ø×ÔPerl¡£
ÕýÔò±í´ïʽÆðÔ´ÓÚ¶ÔÐÎʽÓïÑÔµÄÊýѧÑо¿¡£
ÔÚJavaScriptÖУ¬ÕýÔò±í´ïʽµÄÓï· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ