Laya解析xml要怎么弄?
XMLDom不见了?
我只找到原生的XMLDocument,可是报错
Property 'attributes' does not exist on type 'Node & ChildNode'. 谁 遇到过?
let local_config:XMLDocument = Laya.Utils.parseXMLFromString(source);
local_config.firstChild.childNodes[0].attributes.getNamedItem("tracekey").value
明明lib.d.ts里有attributes啊
interface Node extends EventTarget {
readonly attributes: NamedNodeMap;
...
}
哔哔one
相关分类