JavaScriptÖеĿÕÀàÐÍ
תÔØÀíÓÉ£º¶ÌС¾«º·¡£
À´Ô´£º»¥ÁªÍø
Ò» Undefined ÀàÐÍ
Ö»ÓÐÒ»ÖÖÖµ undefined
ÒÔÏÂÈýÖÖÇé¿ötypeof ·µ»ØÀàÐÍΪundefined
1. µ±±äÁ¿Î´³õʼ»¯Ê±
2. ±äÁ¿Î´¶¨Òåʱ
3. º¯ÊýÎÞÃ÷È··µ»Øֵʱ£¨º¯ÊýûÓзµ»Øֵʱ·µ»ØµÄ¶¼ÊÇundefined£©
undefined ²¢²»µÈͬÓÚ䶨ÒåµÄÖµ
typeof ²¢²»ÕæÕýÇø·ÖÊÇ·ñÊÇ䶨Òå
¿´ÒÔÏÂʾÀý´úÂ룺
var oTemp;
alert(typeof oTemp); // outputs "undefined"
alert(typeof oTemp2);// outputs "undefined"
alert(oTemp2 == undefined ); // ´íÎó oTemp2 䶨Òå ²»ÄÜʹÓóýÁËtypeofÖ®ÍâµÄ²»ÄÜÓÃÀ´oTemp2ÆäËûµÄÔËËã
µ±±äÁ¿
¶þ Null ÀàÐÍ
Ö»ÓÐÒ»¸önull£¬undefined ÊÇÓÉnullÅÉÉú´¦ÀíµÄ£¬Òò´Ëundefined == null
undefined ÊÇÉùÃ÷Á˵«ÊÇûÓгõʼ»¯µÄ¸Ã±äÁ¿£¬
null±íʾÉÐδ´æÔڵĶÔÏó
Èý NaN Öµ
ÊÇÒ»¸öÌØÊâÖµ£¬±íʾ·ÇÊý£¨Not a Number£©
ÀàÐÍת»»Ê§°Ü¾Í»á·µ»ØNaN
e.g. Òª°ÑÒ»¸öµ¥´Êblueת»»ÎªÊýÖµ¾Í»áʧ°ÜÒòΪûÓеȼ۵ÄÊýÖµ
NaN ²»µÈÓÚ×Ô¼º
¼´ NaN == NaN ÊÇ false
ÅжÏNaN ʹÓà isNaN();
Ïà¹ØÎĵµ£º
ÍƼö¼æÈÝ IE¡¢ FireFox µÄ javascript ÈÕÀú¿Ø¼þ
Ô´´×÷Õߣºº®Óð·ã£¨cityhunter172£©
Ò»¡¢¼ò½éÓëÉùÃ÷
´ËÈÕÀú¿Ø¼þÊÇ CSDN ÍøÓÑ KimSoft µÄ×÷Æ·£ºhttp://blog.csdn.net/kimsoft/archive/2006/05/24/753225.aspx ¡£½çÃæÇåˬ£¬´¿ ......
DOMÊÇÕë¶ÔXMLµÄ»ùÓÚÊ÷µÄAPI£¬ËüÓëÓïÑÔÎ޹أ¬ÊµÏÖ·½Ê½ÓкܶàÖÖ£¨¸÷ÓïÑÔ»ù±¾¶¼ÓÐ×Ô¼ºµÄʵÏÖ£©¡£
²»¹ýÎÒÃǾ³£Óõģ¬ÊÇJavaScript ϵÄdomÕë¶ÔxhtmlµÄ²Ù×÷£¬Ö»ÊÇdomµÄÒ»¸ö·ÖÖ§Ó¦Óá£
Ãû´Ê½âÊÍ£º
Dom£ºÎĵµ¶ÔÏóÄ£ÐÍ¡£Document object model
Bom£ºä¯ÀÀÆ÷¶ÔÏóÄ£ÐÍ£¬Ò²¿ÉÒԽд°¿Ú¶ÔÏóÄ£ÐÍ¡££¨window object model.£©
API£ºÓ ......
ÔÚajaxû³öÀ´Ö®Ç°£¬Ò»Ö±ÊÇÓÃiframeʵÏÖµÄÎÞË¢ÐÂÇëÇó¡£
Ö÷ÒªµÄÔÀíÊÇ£º
ʹÓÃjs´´½¨Ò»¸öÒþ²ØµÄiframe
°ÑÒªÌá½»µÄ±íµ¥µÄtargetÊôÐÔÖ¸Ïò1ÖÐÉú³ÉµÄiframe
ÔÚÇëÇóµÄÒ³ÃæÖлص÷¸¸Ò³ÃæµÄ·½·¨
ÕâÑù¾ÍʵÏÖÁËÒ»¸ö¼òµ¥µÄ“Òì²½Ìá½»”
¿´ÆðÀ´ºÍajaxÒ»ÑùµÄЧ¹û£¬ÄÇΪʲô»¹ÒªÓÐajax£¬ÎÒÃÇÀ´±È½ÏÏ£º£¨ÒÔÏ°Ñajax¼¼Êõ³ÆΪX ......
ת×Ô£ºhttp://www.cnblogs.com/mslove/
ÃèÊö
event´ú±íʼþµÄ״̬£¬ÀýÈç´¥·¢event¶ÔÏóµÄÔªËØ¡¢Êó±êµÄλÖü°×´Ì¬¡¢°´ÏµļüµÈµÈ¡£
event¶ÔÏóÖ»ÔÚʼþ·¢ÉúµÄ¹ý³ÌÖвÅÓÐЧ¡£
eventµÄijЩÊôÐÔÖ»¶ÔÌض¨µÄʼþÓÐÒâÒå¡£±ÈÈ磬fromElement ºÍ toElement ÊôÐÔÖ»¶Ô onmouseover ºÍ onmouseout ʼþÓÐÒâÒå¡£
Àý×Ó
ÏÂÃæµÄÀý×Ó¼ì²é ......