flash 真变态,拿文字节点的时候还需要多走一次DOM。比如
这样的xml内容。用
myXML.firstChild.firstChild.firstChild.nodeName 可以得到 item
但要得到 hhh,则要再多写一个 firstChild!真变态,害我折腾了十几分钟
myXML.firstChild.firstChild.firstChild.firstChild.nodeValue
方法比javascript要少一些,但还够用,就是罗嗦一些。
appendChild(XMLNode.appendChild 方法),attributes(XMLNode.attributes 属性),childNodes(XMLNode.childNodes 属性),cloneNode(XMLNode.cloneNode 方法),firstChild(XMLNode.firstChild 属性),hasChildNodes(XMLNode.hasChildNodes 方法),insertBefore(XMLNode.insertBefore 方法),lastChild(XMLNode.lastChild 属性),nextSibling(XMLNode.nextSibling 属性),nodeName(XMLNode.nodeName 属性),nodeType(XMLNode.nodeType 属性),nodeValue(XMLNode.nodeValue 属性),parentNode(XMLNode.parentNode 属性),previousSibling(XMLNode.previousSibling 属性),removeNode(XMLNode.removeNode 方法),toString(XMLNode.toString 方法)
Leave a reply