nodeType 属性
来源:互联网 发布:淘宝客pid三段什么意思 编辑:程序博客网 时间:2024/06/02 15:49
Definition and Usage
定义和用法
The nodeType property returns node type of the selected node.
nodeType属性的作用是:返回已选节点的节点类型。
Syntax
语法
elementNode.nodeName
节点数:
节点名称:
In all examples, we will use the XML file books.xml, and the JavaScript function loadXMLDoc().
在所有案例中,我们将使用“book.xml”文件以及JavaScript 函数“loadXMLDoc()”。
Example
案例
The following code fragment gets the node type from the first <title> element of "books.xml":
下面的代码片断将获取“books.xml”文件中的第一个<title>元素的节点类型:
xmlDoc=loadXMLDoc("books.xml");
var x=xmlDoc.getElementsByTagName("title")[0];document.write(x.nodeType);
The output of the code above will be:
上述代码将输出下面的结果:
1
Try-It-Yourself Demos
自我演示
nodeType - Get the node types from the entire XML document
nodeTyoe - 获取整个XML文档的节点类型
nodeType - Skip empty text nodes
nodeType - 跳过空的文本节点
- nodeType 属性
- nodeType属性
- Js nodeType 属性
- 27. Element nodeType 属性
- HTML DOM nodeType 属性
- javascript的nodeType 属性
- Js nodeType 属性全面解析
- JavaScript获取和设置属性,nodeType属性
- nodeType
- 关于XML DOM中的nodeType属性
- js nodeName nodeValue nodeType 属性介绍
- onload、元素、属性、文本、nodeType nodeName nodeValue
- js nextSibling属性和previousSibling属性和NodeType返回类型
- JavaScript学习——childNodes属性、nodeType属性
- nodeType 属性返回被选节点的节点类型
- DOM节点中nodeName、nodeValue 以及 nodeType属性值
- DOM节点中属性nodeName、nodeType跟nodeValue的区别
- XML DOM nodeType 属性值代表的意思
- 27.5.4 测试功能
- Oracle的日期函数
- 27.6 开发实例-订单签名
- 27.6.1 签名页面前台(Sign.aspx)
- 什么是NetBPM?
- nodeType 属性
- 27.6.2 签名页面后台(Sign.aspx.cs)
- R0LLER与应用系统的整合
- [C#] 动态生成GridView的模版列TemplateField,并在模版列TemplateField中添加复选框CheckBox
- 网页制作基础教程(网址)
- SQL Plus 一些使用技巧,HERE!
- 27.6.3 签证签名页面前台(verifySign.aspx)
- 27.6.4 验证签名后台页面(verifySign.aspx.cs)
- FrameSet刷新