定義和用法
nodeType 屬性返回被選節(jié)點的節(jié)點類型。
語法:
elementNode.nodeType
節(jié)點編號: | 節(jié)點名稱: |
---|---|
1 | Element |
2 | Attribute |
3 | Text |
4 | CDATA Section |
5 | Entity Reference |
6 | Entity |
7 | Processing Instrucion |
8 | Comment |
9 | Document |
10 | Document Type |
11 | Document Fragment |
12 | Notation |
新聞熱點
疑難解答