JavaScriptÄÚ´æй©
1¡¢Ê²Ã´ÊDZհü¡¢ÒÔ¼°±Õ°üËùÉæ¼°µÄ×÷ÓÃÓòÁ´ÕâÀï¾Í²»ËµÁË¡£
2¡¢JavaScriptÀ¬»ø»ØÊÕ»úÖÆ
JavaScript²»ÐèÒªÊÖ¶¯µØÊÍ·ÅÄڴ棬ËüʹÓÃÒ»ÖÖ×Ô¶¯À¬»ø»ØÊÕ»úÖÆ£¨garbage collection£©¡£µ±Ò»¸ö¶ÔÏóÎÞÓõÄʱºò£¬¼´³ÌÐòÖÐÎÞ±äÁ¿ÒýÓÃÕâ¸ö¶ÔÏóʱ£¬¾Í»á´ÓÄÚ´æÖÐÊͷŵôÕâ¸ö±äÁ¿¡£
Code
var s = [ 1, 2 ,3];
var s = null;
//ÕâÑùÔʼµÄÊý×é[1 ,2 ,3]¾Í»á±»ÊͷŵôÁË¡£
3¡¢Ñ»·ÒýÓÃ
Èý¸ö¶ÔÏó A ¡¢B ¡¢C
AàBàC £ºAµÄijһÊôÐÔÒýÓÃ×ÅB£¬Í¬ÑùCÒ²±»BµÄÊôÐÔÒýÓÃ×Å¡£Èç¹û½«AÇå³ý£¬ÄÇôB¡¢CÒ²±»ÊÍ·Å¡£
AàBàCàB £ºÕâÀïÔö¼ÓÁËCµÄijһÊôÐÔÒýÓÃB¶ÔÏó£¬Èç¹ûÕâÊÇÇå³ýA£¬ÄÇôB¡¢C²»»á±»ÊÍ·Å£¬ÒòΪBºÍCÖ®¼ä²úÉúÁËÑ»·ÒýÓá£
Code
var a = {};
a.pro = { a:100 };
a.pro.pro = { b:100 };
a = null ;
//ÕâÖÖÇé¿öÏ£¬{a:100}ºÍ{b:100}¾ÍͬʱҲ±»ÊÍ·ÅÁË¡£
var obj = {};
obj.pro = { a : 100 };
obj.pro.pro = { b : 200 };
var two = obj.pro.pro;
obj = null;
//ÕâÖÖÇé¿öÏ {b:200}²»»á±»Êͷŵô£¬¶ø{a:100}±»ÊÍ·ÅÁË¡£
4¡¢Ñ»·ÒýÓúͱհü
Code
function outer(){
var obj = {};
function inner(){
//ÕâÀïÒýÓÃÁËobj¶ÔÏó
&
Ïà¹ØÎĵµ£º
´úÂëʹÓ÷½·¨£º
ÔÚ½éÉÜÕýÔò±í´ïʽÓ﷨֮ǰÏÈѧϰÏÂÃ漸¸ö·½·¨:
ÕýÔò±í´ïʽ·½·¨:test(),exec()
String¶ÔÏó·½·¨:match(),search(),replace(),split()
test()·½·¨:
Ó÷¨:regexp¶ÔÏóʵÀý.test(×Ö·û´®)
·µ»ØÖµ:Èç¹ûÂú×ãregexp¶ÔÏóʵÀýÖж¨µÄÕýÔò¹æÔò,·µ»Øtrue,·ñÔò·µ»Øfalse
exec()·½·¨:
......
write by ¾ÅÌìÑãôá(JTianLing) -- blog.csdn.net/vagrxie
ÌÖÂÛÐÂÎÅ×é¼°Îļþ
ÔÎÄÀ´×Ô£º¡¶JavaScript for C & Python programmers
¡·£¬¾¹ý×÷ÕßCanisÔÊÐíºó·Ò룬¼´Ê¹×ªÔØÇ븽´ø´ËÁ´½Ó¡£
Ç°ÑÔ£ººÜÉٸɷÒëµÄÊÂÇ飬ÀÛ£¬ÐÁ¿à£¬²»ÄÜ·¢»Ó£¬µäÐ͵ķÑÁ¦²»Ìֺã¬×î½üÎÞÁÄ£¬ÏëÔÚÍøÒ³ÉÏÏÔʾ¶¯»£¨ÒòΪCSDNÌ ......
¡¾×ª¡¿http://www.cnblogs.com/chenxizhang/archive/2010/01/02/1638010.html
±¾ÎÄתÔØ×Ô£ºhttp://www.cn-cuckoo.com/2007/08/01/understand-javascript-closures-72.html
Òª³ÉΪ¸ß¼¶ JavaScript ³ÌÐòÔ±£¬¾Í±ØÐëÀí½â±Õ°ü¡£
±¾ÎĽáºÏ ECMA 262 ¹æ·¶Ïê½âÁ˱հüµÄÄÚ²¿¹¤×÷»úÖÆ£¬Èà JavaScript ±à³ÌÈËÔ±¶Ô±Õ°üµÄÀí½â´Ó&ldquo ......
FRAMESET ±êÇ©ÊÇ FRAME ÔªËصÄÈÝÆ÷¡£
HTML Îĵµ¿É°üº¬ FRAMESET ÔªËØ»ò BODY ÔªËØÖ®Ò»£¬Á½Õß²»ÄÜͬʱʹÓá£
¿ò¼Ü½«ÍøÒ³·Ö³É¼¸¸ö¿ò´°£¬Í¬Ê±È¡µÃ¶à¸öURL¡£ÓÃ<FRAMESET> <FRAME> ¼´¿É£¬ËùÓпò¼Ü±ê¼ÇÐèÒª·ÅÔÚÒ»¸ö×ÜÆðµÄ html ÎĵµÀÕâ¸öµµ°¸Ö»¼Ç¼Á˸ÿò¼ÜÈçºÎ·Ö¸î £¬²»»áÏÔʾÈκÎ×ÊÁÏ£¬ËùÒÔ²»±Ø·ÅÈë <BODY& ......