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

javascriptÖÐDOM½Úµã


nodeName
nodeName ÊôÐÔº¬ÓÐij¸ö½ÚµãµÄÃû³Æ¡£
ÔªËؽڵãµÄ nodeName ÊDZêÇ©Ãû³Æ
ÊôÐÔ½ÚµãµÄ nodeName ÊÇÊôÐÔÃû³Æ
Îı¾½ÚµãµÄ nodeName ÓÀÔ¶ÊÇ #text
Îĵµ½ÚµãµÄ nodeName ÓÀÔ¶ÊÇ #document
×¢ÊÍ£ºnodeName Ëù°üº¬µÄ XML ÔªËصıêÇ©Ãû³ÆÓÀÔ¶ÊÇ´óдµÄ
nodeValue
¶ÔÓÚÎı¾½Úµã£¬nodeValue ÊôÐÔ°üº¬Îı¾¡£
¶ÔÓÚÊôÐԽڵ㣬nodeValue ÊôÐÔ°üº¬ÊôÐÔÖµ¡£
nodeValue ÊôÐÔ¶ÔÓÚÎĵµ½ÚµãºÍÔªËؽڵãÊDz»¿ÉÓõġ£
nodeType
×÷ ÓÃ
±æʶ½ÚµãµÄDOM ÐÍ̬¡£ ¡¡
»ù±¾Óï·¨
numNodeType £½ xmlDocNode.nodeType ;
¡¡
˵ Ã÷
´ËÊôÐÔÖ»¶ÁÇÒ´«»ØÒ»¸öÊýÖµ¡£
ÓÐЧµÄÊýÖµ·ûºÏÒÔϵÄÐͱð£º
1-ELEMENT   (ÔªËØ)
2-ATTRIBUTE £¨ÊôÐÔ£©
3-TEXT £¨Îı¾£©
4-CDATA
5-ENTITY REFERENCE
6-ENTITY
7-PI (processing instruction)
8-COMMENT £¨×¢ÊÍ£©
9-DOCUMENT £¨£©
10-DOCUMENT TYPE
11-DOCUMENT FRAGMENT
12-NOTATION
¡¡
¡¡
·¶ Àý
numNodeType £½ xmlDoc.documentElement.nodeType;
alert(numNodeType);
Node Types
½ÚµãÀàÐÍ
The following table lists the different W3C node types, and which node types they may have as children:
ÏÂÊö±í¸ñÁоÙÁ˲»Í¬µÄW3C½ÚµãÀàÐÍ£¬Ã¿¸ö½ÚµãÀàÐÍÖпÉÄÜ»á°üº¬×ÓÀࣺ
Node type
½ÚµãÀàÐÍDescription
ÃèÊöChildren
×ÓÀà
Document
Îĵµ
Represents the entire document (it is the root-node of the DOM tree)
¶¨ÒåÕû¸öÎĵµ£¨DOMÊ÷µÄ¸ù½Úµã£©
Element (max. one), ProcessingInstruction, Comment, DocumentType
DocumentFragment
ÎĵµÆ¬¶Ï
Represents a "lightweight" Document object, which can hold a portion of a document
¶¨Òå“lightweight”Îĵµ¶ÔÏ󣨱£ÁôÒ»¸öÎĵµÖеÄÒ»²¿·Ö£©
Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference
DocumentType
ÎĵµÀàÐÍ
Represents a list of the entities that are defined for the document
¶¨ÒåÎĵµµÄʵÌåÁбí
None
EntityReference
ʵÌå²ÎÊý
Represents an entity reference
¶¨ÒåÒ»¸öʵÌå²ÎÊý
Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference
Element
ÔªËØ
Represents an element
¶¨ÒåÒ»¸öÔªËØ
Element, Text, Comment, ProcessingInstruction, CDATASection, EntityReference
Attr
ÊôÐÔ
Represents an attribute. Not


Ïà¹ØÎĵµ£º

JavaScript¶ÔframesetµÄ²Ù×÷×ܽá

1 ¿ò¼Ü±à³Ì¸ÅÊö
    Ò»¸öHtml Ò³Ãæ¿ÉÒÔÓÐÒ»¸ö»ò¶à¸ö×Ó¿ò¼Ü£¬ÕâЩ×Ó¿ò¼ÜÒÔ<iframe>À´±ê¼Ç£¬ÓÃÀ´ÏÔʾһ
¸ö¶ÀÁ¢µÄHtml Ò³Ãæ¡£ÕâÀïËù½²µÄ¿ò¼Ü±à³Ì°üÀ¨¿ò¼ÜµÄ×ÔÎÒ¿ØÖÆÒÔ¼°¿ò¼ÜÖ®¼äµÄ»¥Ïà·ÃÎÊ£¬
ÀýÈç´ÓÒ»¸ö¿ò¼ÜÖÐÒýÓÃÁíÒ»¸ö¿ò¼ÜÖеÄJavaScript±äÁ¿¡¢µ÷ÓÃÆäËû¿ò¼ÜÄڵĺ¯Êý¡¢¿ØÖÆÁíÒ»
¸ö¿ò¼ÜÖÐ±íµ¥µÄÐÐΪµ ......

JavaScript XMLHttpRequestµÄÓô¦

      Èç¹ûÏë´ÓÍøÒ³Ìá½»²ÎÊýµ½·þÎñÆ÷£¬µÚÒ»¸öÏëµ½µÄ¾ÍÊÇHttpµÄForm±êÇ©¡£Ëü½«Óû§ÔÚ¿Í»§¶ËÍøÒ³ÌîдµÄÊý¾Ýͨ¹ýHTTP Post£¬Ìá½»µ½·þÎñ¶Ë¡£ÕâЩÌá½»µÄÊý¾Ý±»·ÅÔÚHTTPÏûÏ¢µÄbodyÀïÃ棬ÕâÑù£¬Óû§Ìá½»µÄÊý¾ÝÀíÂÛÉÏÊÇûÓ㤶ÈÏÞÖƵġ£Èç¹û·þÎñ¶ËÓõÄÊÇJ2EE£¬HttpServletRequest¿ÉÒԷdz£ÇáËɵÃÈ¡µ½ËùÓвΠ......

javascript ³£¼ûÎÊÌâ


1.javascriptÓëHtmlÖеĵ÷ÓÃÎÊÌâ¡£
ÔÚjavascriptÖÐÒªÏë¸ü¸ÄhtmlÖеÄһЩÊôÐÔÖµ£¬ÌرðÊÇÔÚÒ³ÃæÄÚÈݽ϶àʱ£¬Îñ±ØʹÓÃdocument.getElementById(id)µÄ·½Ê½½øÐУ¬·ñÔòjavascript½«²»Äܸü¸ÄÊôÐÔ£¡
2.DateÀà¡£
ÔÚDateÀàÖеÄgetMonth£¨£©µÈ·½·¨·µ»ØֵΪnumber¡£Òò´Ë¿ÉÒÔʹÓÃÊý×é´æ´¢Ô·ÝÐÅÏ¢Èçmonth£½[“1Ô”£¬&ldq ......

Javascript——±Õ°ü


     
×î½üÕâ¶Îʱ¼äÒ»Ö±ÔÚ¸ãÇ°¶ËJavaScript£¬ÒÔÇ°×ܾõµÃJSûʲô¸ãÍ·£¬¾­¹ýÕâÒ»¶ÎµÄÓ¦Ó㬲ŷ¢ÏÖJsÀïÃæµÄ¶«Î÷ÕæµÄºÜÉîºÜÉîµÄ£¬²»È»ÎªÊ²Ã´¸÷´óÃÅ»§ÍøÕ¾¶¼ÕÐÒ»ÅúJS¹¤³ÌʦÄØ¡£
       Ïл°²»Ëµ£¬ÏÖÔÚ¿´¿´JavaScript
ÀïµÄ±Õ°ü
¡£
Òª³ÉΪ¸ß¼¶ JavaScript ³ÌÐòÔ± ......

JavaScript²Ù×÷·þÎñÆ÷¿Ø¼þÖ®Gridview¿Ø¼þ

JavaScript²Ù×÷·þÎñÆ÷¿Ø¼þÖ®Gridview¿Ø¼þ
1.JavaScript½Å±¾ÈçÏ£º
<script language="javascript" type="text/javascript">
    function gridviewControl()
    {
        //»ñÈ¡GridViewµÄ¿Í»§¶ËÔªËØ
       ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ