Ê×Ò³ Ê«´Ê ×Öµä °å±¨ ¾ä×Ó ÃûÑÔ ÓÑ´ð ÀøÖ¾ ѧУ ÍøÕ¾µØͼ
µ±Ç°Î»ÖÃ: Ê×Ò³ > ½Ì³ÌƵµÀ > ÍøÕ¾¿ª·¢ > WebÇ°¶Ë >

DOM Level һѧϰ֮һ_¹ØÓÚNode

2012-11-03 
DOM Level 1ѧϰ֮һ_¹ØÓÚNode½ñÌìÏë¿´¿´nodeTypeµ½µ×Óм¸ÖÖÇé¿ö£¬ËÑË÷µ½http://www.w3.org/TR/REC-DOM-Lev

DOM Level 1ѧϰ֮һ_¹ØÓÚNode
½ñÌìÏë¿´¿´nodeTypeµ½µ×Óм¸ÖÖÇé¿ö£¬ËÑË÷µ½http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html£¬¾Í×Ðϸ¿´ÁËһϣ¬°Ñinterface NodeÕâ¶Îժ¼ÈçÏ£º


ͨ¹ýÉÏÃæµÄ´úÂë¿ÉÒÔ¿´³öÔÚijЩÇé¿öÏÂoffsetParentºÍparentNodeÊDz»Í¬µÄ£¬µ±È»²»½ö½ö¾ÖÏÞÓÚ´ËÖÖÇé¿ö¡£

¶ÔÓÚparentElement£¬MSDNÉÏÓÐÕâôһ¸öÆÀÂÛ£º
Always use parentNode instead of parentElement
parentNode is standard and supported by most browsers, parentElement is proprietary

ËùÒԾͲ»ÓÃÈ¥Ñо¿ËüÁË£¬ÒâÒå²»ÊǺܴ󣬳ý·ÇÎÒÃÇÖ»¿ª·¢IE onlyµÄÍøÒ³¡£

¶ÔÓÚnodeÖÐÆäËûµÄ¶«Î÷»¹ÐèÒªÔÚƽʱµÄ¿ª·¢¹ý³ÌÖÐÂýÂý×ÁÄ¥ÁË£¬Ê×ÏÈÒªÖªµÀËüÌṩÁËÕâЩ·½·¨¸øÎÒÃÇʹÓá£

ÈȵãÅÅÐÐ