日期:2014-05-16  浏览次数:20289 次

js xml
nodel=xmlDoc.createAttribute( "introduction ");
    node1.text= "asdf ";~~~或者value都不能实现请问该如何做
    xmlDoc.documentElement.firstChild.attributes.setNamedItem(nodel);
    alert(xmlDoc.xml);

------解决方案--------------------
是因为数字 "1 "和字母 "l "是不同的...