Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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µÄeval(¡°{JSON object string}¡±)ÎÊÌâ

ÔÚ×öAJAXÓ¦Óÿª·¢µÄʱºò£¬ÎÒÃÇͨ³£Ï²»¶°Ñ·þÎñÆ÷¶Ë·µ»ØµÄJSON¸ñʽ×Ö·û´®ÔÚ¿Í»§¶ËµÄ»Øµ÷º¯ÊýÖаÑËü×÷ΪJavaScript´úÂëÖ´Ðв¢ÓÃÒ»¸ö±äÁ¿±£´æÆðÀ´£¬ÒÔ·½±ãʹÓ÷µ»ØµÄÊý¾Ý¡£Í¨³£µÄ×ö·¨¾ÍÊÇvar jsonData = eval(xmlHttp.responseText)¡£Õâ¿´ÆðÀ´ËƺõÒ»Çж¼ÊÇÕýÈ·µÄ£¬µ«µ±ÄãÔËÐдúÂëµÄʱºò£¬Äã»á·¢ÏÖ±¨“invalid labe”´ ......

Top 10 JavaScript Frameworks by Google

 À´×Ô£ºhttp://www.tripwiremagazine.com/tools/developer-toolbox/top-10-javascript-frameworks-by-google.html
Wed, Nov 11, 2009
Development
, Javascript
, Tools




JavaScript – an indispensable part for developing websites and web
pages, whether th ......

JavaScriptÓï·¨¼¯½õ


click()    ¶ÔÏó.click()    ʹ¶ÔÏó±»µã»÷¡£
closed    ¶ÔÏó.closed    ¶ÔÏó´°¿ÚÊÇ·ñÒѹرÕtrue/false
clearTimeout(¶ÔÏó) Çå³ýÒÑÉèÖõÄsetTimeout¶ÔÏó
clearInterval(¶ÔÏó) Çå³ýÒÑÉèÖõÄsetInterval¶ÔÏó
confirm("ÌáʾÐÅÏ¢") µ¯³öÈ·ÈÏ¿ò£¬È· ......

javaScript document¶ÔÏóÏê½â

 Document¶ÔÏóÄÚÈݼ¯ºÏ
document Îĵ²¶ÔÏó - JavaScript½Å±¾ÓïÑÔÃèÊö
———————————————————————
×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд
·ñ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ