我如何将属性添加到“testTwo”标签?Javascript菜鸟..
var XML = document.createElement("test");
var Node = document.createElement("testOne");
Node.setAttribute("id", "0");
Node.setAttribute("random", "0");
Node.appendChild( document.createElement("testTwo"));
XML.appendChild(Node);
console.log(XML.innerHTML);