您现在的位置是:首页 > 电脑技术查询 > web开发

js xml,该如何解决

编辑:chaxungu时间:2022-10-02 23:18:53分类:web开发

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

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