2018-03-25T19:00:40Z||2018-03-25T19:00:40Z
DOMParser.parseFromString
返回一个Document
对象。Document.documentElement
返回根节点(HTMLElement
类型).
const parser = new DOMParser();
const rootElement = parser.parseFromString(xml, 'application/xml').documentElement;