js错误:The content of elements must consist of well-formed character data or marku
Josh 2010-01-11 06:35:00 我在xhtml里面写了如下一个函数
<script>
function switchShow(areaId){
for ( var i = 0; i < array.length; i++) { //报错在这行(line:40)
}
document.getElementById(areaId).style.display="";
}
</script>
写上那个for循环就报The content of elements must consist of well-formed character data or marku这个错误,去掉for循环就没问题,我纳闷了 一个空的for还报错
高手请解答下
错误信息:
Error Parsing /userMgr.xhtml: Error Traced[line: 40] The content of elements must consist of well-formed character data or markup.