在IE中收到错误,例如“参数数量错误或属性分配无效”



在IE中出现如下错误:

 "Wrong number of arguments or invalid property assignment"

这是我的示例代码:

 if (!test[0].childNodes || !test[0].childNodes.length || 
                                     !test[0].childNodes[0].nodeValue) {
        test1 =test[0].childNodes ="";
   }else{
        test1 =test[0].childNodes[0].nodeValue;
   }

你能帮我吗?请建议我有什么解决方案

childNodes是节点的只读属性。

最新更新