这是怎么做到的?
我在这里读到了:CDATA 我试过了:
var XML = document.createElement("testing");
var NodeSystemOut = document.createElement("system-out");
var cdata = document.createCDATASection
('<p>Good relations have I with the Wookies</p>');
NodeSystem.appendChild(cdata);
XML.appendChild(NodeSystem);
但这不起作用。
有任何想法吗?javascript菜鸟