nodeType 节点简介

nodeType 节点简介

 1 interface Node {
 2   // NodeType
 3   const unsigned short      ELEMENT_NODE       = 1;
 4   const unsigned short      ATTRIBUTE_NODE     = 2;
 5   const unsigned short      TEXT_NODE          = 3;
 6   const unsigned short      CDATA_SECTION_NODE = 4;
 7   const unsigned short      ENTITY_REFERENCE_NODE = 5;
 8   const unsigned short      ENTITY_NODE        = 6;
 9   const unsigned short      PROCESSING_INSTRUCTION_NODE = 7;
10   const unsigned short      COMMENT_NODE       = 8;
11   const unsigned short      DOCUMENT_NODE      = 9;
12   const unsigned short      DOCUMENT_TYPE_NODE = 10;
13   const unsigned short      DOCUMENT_FRAGMENT_NODE = 11;
14   const unsigned short      NOTATION_NODE      = 12;
15 
16   readonly attribute  DOMString            nodeName;
17            attribute  DOMString            nodeValue;
18                                                  // raises(DOMException) on setting
19                                                  // raises(DOMException) on retrieval
20   readonly attribute  unsigned short       nodeType;
21   readonly attribute  Node                 parentNode;
22   readonly attribute  NodeList             childNodes;
23   readonly attribute  Node                 firstChild;
24   readonly attribute  Node                 lastChild;
25   readonly attribute  Node                 previousSibling;
26   readonly attribute  Node                 nextSibling;
27   readonly attribute  NamedNodeMap         attributes;
28   readonly attribute  Document             ownerDocument;
29   Node                      insertBefore(in Node newChild, 
30                                          in Node refChild)
31                                          raises(DOMException);
32   Node                      replaceChild(in Node newChild, 
33                                          in Node oldChild)
34                                          raises(DOMException);
35   Node                      removeChild(in Node oldChild)
36                                         raises(DOMException);
37   Node                      appendChild(in Node newChild)
38                                         raises(DOMException);
39   boolean                   hasChildNodes();
40   Node                      cloneNode(in boolean deep);
41 };

 

转载于:https://www.cnblogs.com/snowinmay/archive/2013/04/23/3037463.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值