在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
是节点的只读属性。