javascript Node nodeType
来源:互联网 发布:php的正则表达式 编辑:程序博客网 时间:2024/05/22 16:45
Returns an integer that corresponds to a node type as specified in the W3C DOM. This is the preferred property to use to test a node object for its type (rather than the nodeName property values). Every node type has a value, but not all browsers that support the nodeType property support all node types as objects. The integer values have corresponding constants associated with them, which you can use to make more verbose, but easier-to-read script comparisons for node type processing (see the ATTRIBUTE_NODEproperty). Note that there is no way to distinguish element types (e.g., root Element node versus anHTMLElement node) via the nodeType property. Also note that IE 6 in Windows erroneously reports aDOCTYPE element as a comment node type.
Exampleif (document.getElementById("elementID").firstChild.nodeType == 1) { // process as an element}
ValueInteger values according to the following table.
- javascript Node nodeType
- javascript的nodeType 属性
- Javascript中的nodetype 返回类型
- nodeType
- JavaScript中的nodeName nodeType nodeValue区别
- javascript DOM节点类型(nodeType)
- javascript的nodeName,nodeType,nodeValue的应用
- javascript学习之nodeType定义和用法
- JavaScript中的nodeName nodeType nodeValue区别
- JavaScript中的nodeName nodeType nodeValue区别
- JavaScript获取和设置属性,nodeType属性
- DOM的核心:Node 对象的nodeName,nodeValue,nodeType
- JavaScript中childNodes、children、nodeValue、nodeType、parentNode、nextSibling详细讲解
- JavaScript学习——childNodes属性、nodeType属性
- javascript node
- JavaScript node
- XML if nodeType == 8; represents it is comment node type
- nodeType 属性
- S3C6410的USBWIFI支持(Android2.1)
- Delphi代码片段:JVCL的TJvGIFAnimator控件和TMS的TGDIPPictureContainer控件图片流处理
- UpdateLayeredWindow 绘制异型窗口
- The Costs of Having a child
- protel四层板及内电层分割
- javascript Node nodeType
- SharePoint之javascript查找人或组控件
- 急求computer organization and design 4th的答案!谢谢
- 26个有用的Jquery小技巧 tips, tricks & solutions
- 再说把鸡蛋竖起来
- Question 24: Which of the following template declarations provide the correct syntax to write a template class
- 对象json输出
- vb6集成环境on error错误处理代码添加插件
- 【实战】 Linux服务器安装配置Tomcat6的Admin模块详细步骤