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

JavaScript ½Úµã²Ù×÷ ÒÔ¼°DOMDocumentÊôÐԺͷ½·¨

 ×î½ü·¢ÏÖDOMDocument¶ÔÏóºÜÖØÒª,»¹ÓÐXMLHTTPÒ²ºÜÖØÒª
×¢Òâ´óСдһ¶¨²»ÄÜŪ´í.
ÊôÐÔ:
1Attributes ´æ´¢½ÚµãµÄÊôÐÔÁбí(Ö»¶Á)
2childNodes ´æ´¢½ÚµãµÄ×Ó½ÚµãÁбí(Ö»¶Á)
3dataType ·µ»Ø´Ë½ÚµãµÄÊý¾ÝÀàÐÍ
4Definition ÒÔDTD»òXMLģʽ¸ø³öµÄ½ÚµãµÄ¶¨Òå(Ö»¶Á)
5Doctype Ö¸¶¨ÎĵµÀàÐͽڵã(Ö»¶Á)
6documentElement ·µ»ØÎĵµµÄ¸ùÔªËØ(¿É¶Áд)
7firstChild ·µ»Øµ±Ç°½ÚµãµÄµÚÒ»¸ö×Ó½Úµã(Ö»¶Á)
8Implementation ·µ»ØXMLDOMImplementation¶ÔÏó
9lastChild ·µ»Øµ±Ç°½Úµã×îºóÒ»¸ö×Ó½Úµã(Ö»¶Á)
10nextSibling ·µ»Øµ±Ç°½ÚµãµÄÏÂÒ»¸öÐֵܽڵã(Ö»¶Á)
11nodeName ·µ»Ø½ÚµãµÄÃû×Ö(Ö»¶Á)
12nodeType ·µ»Ø½ÚµãµÄÀàÐÍ(Ö»¶Á)
13nodeTypedValue ´æ´¢½ÚµãÖµ(¿É¶Áд)
14nodeValue ·µ»Ø½ÚµãµÄÎı¾(¿É¶Áд)
15ownerDocument ·µ»Ø°üº¬´Ë½ÚµãµÄ¸ùÎĵµ(Ö»¶Á)
16parentNode ·µ»Ø¸¸½Úµã(Ö»¶Á)
17Parsed ·µ»Ø´Ë½Úµã¼°Æä×Ó½ÚµãÊÇ·ñÒѾ­±»½âÎö(Ö»¶Á)
18Prefix ·µ»ØÃû³Æ¿Õ¼äǰ׺(Ö»¶Á)
19preserveWhiteSpace Ö¸¶¨ÊÇ·ñ±£Áô¿Õ°×(¿É¶Áд)
20previousSibling ·µ»Ø´Ë½ÚµãµÄÇ°Ò»¸öÐֵܽڵã(Ö»¶Á)
21Text ·µ»Ø´Ë½Úµã¼°Æäºó´úµÄÎı¾ÄÚÈÝ(¿É¶Áд)
22url ·µ»Ø×î½üÔØÈëµÄXMLÎĵµµÄURL(Ö»¶Á)
23Xml ·µ»Ø½Úµã¼°Æäºó´úµÄXML±íʾ(Ö»¶Á)
·½·¨:
1appendChild Ϊµ±Ç°½ÚµãÌí¼ÓÒ»¸öеÄ×Ó½Úµã,·ÅÔÚ×îºóµÄ×Ó½Úµãºó
2cloneNode ·µ»Øµ±Ç°½ÚµãµÄ¿½±´
3createAttribute ´´½¨ÐµÄÊôÐÔ
4createCDATASection ´´½¨°üÀ¨¸ø¶¨Êý¾ÝµÄCDATA¶Î
5createComment ´´½¨Ò»¸ö×¢Êͽڵã
6createDocumentFragment ´´½¨DocumentFragment¶ÔÏó
7createElement ´´½¨Ò»¸öÔªËؽڵã
8createEntityReference ´´½¨EntityReference¶ÔÏó
9createNode ´´½¨¸ø¶¨ÀàÐÍ,Ãû×ÖºÍÃüÃû¿Õ¼äµÄ½Úµã
10createPorcessingInstruction ´´½¨²Ù×÷Ö¸Áî½Úµã
11createTextNode ´´½¨°üÀ¨¸ø¶¨Êý¾ÝµÄÎı¾½Úµã
12getElementsByTagName ·µ»ØÖ¸¶¨Ãû×ÖµÄÔªËؼ¯ºÏ
13hasChildNodes ·µ»Øµ±Ç°½ÚµãÊÇ·ñÓÐ×Ó½Úµã
14insertBefore ÔÚÖ¸¶¨½ÚµãÇ°²åÈë×Ó½Úµã
15Load µ¼ÈëÖ¸¶¨Î»ÖõÄXMLÎĵµ
16loadXML µ¼ÈëÖ¸¶¨×Ö·û´®µÄXMLÎĵµ
17removeChild ´Ó×Ó½áµãÁбíÖÐɾ³ýÖ¸¶¨µÄ×Ó½Úµã
18replaceChild ´Ó×Ó½ÚµãÁбíÖÐÌæ»»Ö¸¶¨µÄ×Ó½Úµã
19Save °ÑXMLÎļþ´æµ½Ö¸¶¨½Úµã
20selectNodes ¶Ô½Úµã½øÐÐÖ¸¶¨µÄÆ¥Åä,²¢·µ»ØÆ¥Åä½ÚµãÁбí
21selectSingleNode ¶Ô½Úµã½øÐÐÖ¸¶¨µÄÆ¥Åä,²¢·µ»ØµÚÒ»¸öÆ¥Åä½Úµã
22


Ïà¹ØÎĵµ£º

²»ÌÆÍ»µÄJavaScriptµÄÆßÌõ×¼Ôò

 Ó¢ÎÄÔ­ÎÄ£ºThe seven rules of Unobtrusive JavaScript
Ô­ÎÄ×÷ÕߣºChris Heilmann
¾­¹ý¶àÄêµÄ¿ª·¢¡¢½ÌѧºÍ±àд²»ÌÆÍ»µÄJavaScript£¬ ÎÒ·¢ÏÖÁËÏÂÃæµÄһЩ׼Ôò¡£ÎÒÏ£ÍûËüÃÇ¿ÉÒÔ°ïÖúÄã¶Ô“ΪʲôÕâÑùÉè¼ÆºÍÖ´ÐÐJavaScript±È½ÏºÃ”ÓÐÒ»µãÀí½â¡£ÕâЩ¹æÔòÔø¾­°ïÖúÎÒ¸ü¿ìµØ½»¸¶²úÆ·£¬²¢ÇÒ²úÆ·µÄÖÊÁ¿¸ü¸ß£¬Ò²¸üÈÝ ......

javaScript document¶ÔÏóÏê½â

 Document¶ÔÏóÄÚÈݼ¯ºÏ
document Îĵ²¶ÔÏó - JavaScript½Å±¾ÓïÑÔÃèÊö
———————————————————————
×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд
·ñ ......

¹ØÓÚJavaScriptÖеıäÁ¿

 ±äÁ¿µÄÖ÷Òª×÷ÓÃÊÇ´æÈ¡Êý¾Ý¡¢Ìṩ´æ·ÅÐÅÏ¢µÄÈÝÆ÷¡£¶ÔÓÚ±äÁ¿±ØÐëÃ÷È·±äÁ¿µÄÃüÃû¡¢±äÁ¿µÄÀàÐÍ¡¢±äÁ¿µÄÉùÃ÷¼°±äÁ¿µÄ×÷ÓÃÓò¡£
¡¡±äÁ¿µÄÃüÃû
       JavaScriptÖеıäÁ¿ÃüÃûͬÆäËü¼ÆËã»úÓïÑԷdz£ÏàËÆ£¬ÕâÀïҪעÒâÒÔÏÂÁ½µã£º
         &nbs ......

Google ÅÅÃûÖÐµÄ 10 ¸ö×îÖøÃûµÄ JavaScript ¿â

   Google ÅÅÃûÖÐµÄ 10 ¸ö×îÖøÃûµÄ JavaScript ¿â ÊÕ²Ø
JavaScript ÊÇ Web ¿ª·¢ÓëÉè¼ÆÖв»¿É»òȱµÄ¶«Î÷£¬²»¹ÜÊÇÒ»¸ö¼òµ¥µÄÍøÒ³»¹ÊÇÒ»¸öרҵµÄÕ¾µã£¬Ò²²»¹ÜÄãÊǸßÊÖ»¹ÊDzËÄñ£¬Èç½ñ JavaScript ¿âÔ½À´Ô½Ç¿´ó£¬¿ÉÒÔʤÈÎÐí¶à¸´ÔӵŤ×÷£¬È»¶øͬʱ£¬ÈËÃÇÔÚÖÚ¶à JavaScript ¿âÃæÇ°ÓÖ¾õµÃÎÞËùÊÊ´Ó£¬±¾ÎÄ£¬ÎÒÃǽ«Ê¹Óà G ......

¾«Í¨JavaScript —— º¯ÊýÖØÔغÍÀàÐͼì²é


ÆäËüÃæÏò¶ÔÏóµÄÓïÑÔÈçJAVAµÄÒ»¸ö³£¼ûÌØÐÔÊÇ£¬¸ù¾Ý´«ÈëµÄ²»Í¬ÊýÁ¿»òÀàÐ͵ģ¬Í¨¹ýÖØÔØ(overload) À´·¢»Ó²»Í¬µÄ¹¦Ó᣾¡¹ÜÕâ¸öÌØÐÔÔÚJavaScriptÖв¢Ã»ÓÐÖ±½ÓÖ§³Ö£¬Ò²Óкܶà°ì·¨Äܹ»ÊµÏÖ¡£
º¯ÊýÖØÔØ£¨function overloading£©±ØÐëÒÀÀµÁ½¼þÊÂÇ飺Åжϴ«Èë²ÎÊýµÄÊýÁ¿µÄÄÜÁ¦ºÍÅжϴ«Èë²ÎÊýÀàÐ͵ÄÄÜÁ¦¡£
JavaScript掅 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ