Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¾«´â¶ÁÊé±Ê¼Ç(8)

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

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

http://blog.csdn.net/mouyong/archive/2009/10/02/4626852.aspx
Èç¹ûÄãÏë¼ÓÔ­×÷ÕßΪºÃÓÑ£ºÇëµã»÷ÒÔÏÂÁ´½Óhttp://hi.csdn.net/invite.php?u=8943&c=759c7fc189ea23c1
µÚ1Õ   ¾«»ª
JavaScriptµÄÌØÐÔÖÐÓÐÒ»²¿·ÖÌØÐÔ´øÀ´µÄÂé·³Ô¶Ô¶³¬³öËüÃǵļÛÖµ¡£ÆäÖУ¬Ò»Ð©ÌØÐÔÊÇÒòΪ¹æ·¶ºÜ²»ÍêÉÆ£¬´Ó¶ø¿ÉÄܵ¼Ö¿ÉÒÆ ......

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

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

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

http://blog.csdn.net/mouyong/archive/2010/03/10/5364047.aspx
µÚ9Õ  ´úÂë·ç¸ñ
¼ÆËã»ú³ÌÐòÊÇÈËÀàÖÆÔì³öÀ´µÄ×ÔÓµÄÊÂÎï¡£³ÌÐòͨ³£Óɺܶಿ·Ö×é³É£¬±íÏÖΪº¯Êý¡¢Óï¾äºÍ±í´ïʽ£¬ËüÃDZØÐë׼ȷÎÞÎ󵨰´ÕÕ˳ÐòÅÅÁС£×îÖյĽá¹û¼¸ºõ¶¼ºÍʵÏÖËüµÄ³ÌÐòûÓÐʲôÏàËÆÖ®´¦¡£ÔÚÈí¼þµÄ²úÆ·ÉúÃüÖÜÆÚÖУ¬Í¨³£ËüÃǶ¼»á±»ÐÞ¸ ......

Javascript ÑÓ³Ùº¯Êý

function Pause(obj, pSecond) {
/*ÀûÓÃwindow.eventListϵͳ¶ÔÏóÀ´´«µÝTestÕâ¸öÈõ¶ÔÏó£¬ÕâÊÇÓÉÓÚÄãµÄº¯ÊýÓпÉÄÜÊÇ´ø²ÎÊýµÄ¡£
ÓÉÃæÏò¶ÔÏóµÄ˼Ï룬´«µÝ²ÎÊý¾¡Á¿²»Òª²ÉÓÃÈ«¾Ö±äÁ¿£¬ÒòΪÄãµÄ¶ÔÏóÓпÉÄÜÓÐ1¸öÒ²ÓпÉÄÜÓÐn¸ö£¬¶ø
ÓÐЩʱºòËù´´½¨¶ÔÏóµÄ¸öÊý²¢²»ÊÇÄãÊÂÏÈ¿ÉÒÔÖªµÀµÄ£¬ÄÇôҪ´´½¨È«¾Ö±äÁ¿µÄ¸öÊý×ÔÈ»ºÜÄÑÅжÏÁË ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ