Javascript里使用Dom操作Xml-asp.net入门笔记(十一)[14]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

226  hasChildNodes

Provides a fast way to determine whether a node has children

判断是否含有子节点

返回值为bool

 

三.例子

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");

xmlDoc.async = false;

xmlDoc.load("test\\test1.xml");

if (xmlDoc.parseError.errorCode!=0)

{

var error = xmlDoc.parseError;

  alert(error.reason)

return;

}

var root = xmlDoc.documentElement;   //根节点

Form1.test1.value = root.xml;

本文关键:Javascript里使用Dom操作Xml-asp.net入门笔记(十一)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top