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

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

http://blog.csdn.net/mouyong/archive/2010/01/25/5252558.aspx
µÚ6Õ  Êý×é
Êý×éÊÇÒ»¶ÎÏßÐÔ·ÖÅäµÄÄڴ棬Ëüͨ¹ýÕûÊýÈ¥¼ÆËãÆ«ÒƲ¢·ÃÎÊÆäÖеÄÔªËØ¡£Êý×é¿ÉÒÔÊǺܿìµÄÊý¾Ý½á¹¹¡£²»ÐÒµÄÊÇ£¬JavaScriptµÄÊý×é²»ÊÇÕâÑùµÄ¡£ËüÌṩÁËÒ»ÖÖÓµÓÐÀàËÆÊý×éÌØÐԵĶÔÏó¡£Ëü°ÑÊý×éµÄϱêת±ä³É×Ö·û´®£¬ÓÃÆä×÷ΪÊôÐÔ¡£ËüÃ÷ÏԵرÈÒ»¸öÕæÕýµÄÊý×éÂý£¬µ«Ëü¿ÉÒÔ¸ü·½±ãµØʹÓá£ÊôÐԵļìË÷ºÍ¸üеķ½Ê½Óë¶ÔÏóһģһÑù£¬³ýÁËÓÐÒ»¸ö¿ÉÒÔÓÃÕûÊý×÷ΪÊôÐÔÃûµÄÌØÐÔÍâ¡£Êý×éÓÐËüÃÇ×Ô¼ºµÄ¶¨Òå¸ñʽ¡£Êý×éÒ²ÓÐÒ»Ì׷dz£ÓÐÓõÄÄÚÖ÷½·¨£¬ÎÒ½«ÔÚµÚ8ÕÂÃèÊöËüÃÇ¡£
6.1   Êý×鶨Òå
Êý×鶨ÒåÌṩÁËÒ»Öַdz£·½±ãµØ´´½¨ÐÂÊý×éµÄ±íʾ·¨¡£Ò»¸öÊý×鶨ÒåÊÇÔÚÒ»¶Ô·½À¨ºÅÖаüΧÁã¸ö»ò¶à¸öÓöººÅ·Ö¸ôµÄÖµµÄ±í´ïʽ¡£Êý×鶨Òå¿ÉÒÔ³öÏÖÔÚÈκαí´ïʽ¿ÉÒÔ³öÏֵĵط½¡£Êý×éµÄµÚÒ»¸öÖµ½«»ñµÃÊôÐÔÃû’0’£¬µÚ¶þ¸öÖµ½«»ñµÃÊôÐÔÃû’1’£¬ÒÀ´ÎÀàÍÆ£º
var empty=[];
var numbers=[‘zero’,’one’,’two’,’three’,’four’,’five’,’six’,’seven’,’eight’,’nine’];
empty[1]                                   //undefined
numbers[1]                                //’one’
empty.length                            //0
numbers.length                         //10
¶øÒÔϵĶÔÏó¶¨Ò彫²úÉúÒ»¸öÏàËƵĽá¹û£º
var numbers_object={
                     &


Ïà¹ØÎĵµ£º

Îò͸JavaScript(תÌù)

ÄѵÃÒ»¼ûµÄºÃÎÄ£¬¶ÔÓµÓÐOOP»ù´¡£¬ÓÖÏë¿ìËÙѧϰJavaScriptµÄ³ÌÐòÔ±¶øÑÔ£¬ÕâƪÎÄÕÂÈÃÈËõ®õ­¹à¶¥£¬Ã©Èû¶Ù¿ª¡£ÈçͬÐéÖñ±»ÎÞÑÄ×Ó¹àÊäÁË70ÄêµÄÄÚÁ¦Ò»°ã£¬¿ÉÒÔ˵һÎĵãÆÆJS°¡£¡
Ô­Îijö´¦£ºÎò͸JavaScript
Òý×Ó
    ±à³ÌÊÀ½çÀïÖ»´æÔÚÁ½ÖÖ»ù±¾ÔªËØ£¬Ò»¸öÊÇÊý¾Ý£¬Ò»¸öÊÇ´úÂë¡£±à³ÌÊÀ½ç¾ÍÊÇÔÚÊý¾ÝºÍ´úÂëǧ˿ÍòÂƵ ......

ÓÐ¹Ø JavaScript µÄ 10 ¼þÈÃÈ˷ѽâµÄÊÂÇé

JavaScript ¿ÉËãÊÇÊÀ½çÉÏ×îÁ÷Ðеıà³ÌÓïÑÔ£¬ËüÔø±» Web ¿ª·¢Éè¼ÆʦÌùÉÏجÃεıêÇ©£¬ËäÈ»ÕæÕýµÄجÃÎÆäʵÊÇ DOM API£¬Õâ¸ö±»´óÁ¿µÄ¿ª·¢ÓëÉè¼ÆʦËæÊÖÄéÀ´ÔöÇ¿ËûÃÇµÄ Web Ç°¶ËµÄ½Å±¾ÓïÑÔ£¬Èç½ñÔ½À´Ô½±»ÖØÊÓ£¬ËäÔòÈç´Ë£¬JavaScript ÈÔȻӵÓкܶàÈÃÈ˷ѽâµÄ¶«Î÷¡£
1. ËüÒÔ Java ÃüÃû£¬µ«²¢²»ÊÇ Java
Ëü×î³õ½Ð Mocha£¬ ½ÓןÄÃûÎ ......

JavaScript¾«´â(4 2)

4.9
  
×÷ÓÃÓò
ÔÚ±à³ÌÓïÑÔÖУ¬×÷ÓÃÓò¿ØÖÆ×űäÁ¿Óë²ÎÊýµÄ¿É¼ûÐÔ¼°ÉúÃüÖÜÆÚ¡£¶Ô³ÌÐòÔ±À´ËµÕâÊÇÒ»¸öÖØÒªµÄ°ïÖú£¬ÒòΪËü¼õÉÙÁËÃû³Æ³åÍ»£¬²¢ÇÒÌṩÁË×Ô¶¯ÄÚ´æ¹ÜÀí¡£
´ó¶àÊýʹÓÃCÓïÑÔÓï·¨µÄÓïÑÔ¶¼ÓµÓп鼶×÷ÓÃÓò¡£ÔÚÒ»¸ö´úÂë¿éÖУ¨À¨ÔÚÒ»¶Ô»¨À¨ºÅÖеÄÓï¾ä¼¯£©¶¨ÒåµÄËùÓбäÁ¿ÔÚ´úÂë¿éµÄÍⲿÊDz»¿É¼ûµÄ¡£¶¨ÒåÔÚ´ú
 ......

JavaScript¾«´â(4 2)

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