javascript 出错!
我的程序:
<script language="JavaScript">
function expandnode()
{ document.writeln("<a href=\"#\" onClick=\"expandnode()\">dddd</a>");
document.writeln("<table border=\"1\">");
document.writeln("<logic:iterate id= \"xxx\" name=\"abc\">");
document.writeln("<TR>");
document.writeln("<TD><bean:write name=\"xxx\" property=\"logname\"/></TD>");
document.writeln("<TD><bean:write name=\"xxx\" property=\"password\"/></TD>");
document.writeln("<TD><bean:write name=\"xxx\" property=\"phone\"/></TD>");
document.writeln("<TD><bean:write name=\"xxx\" property=\"address\"/></TD>");
document.writeln("</TR>");
document.writeln("</logic:iterate>");
document.writeln("</table>");
}
</script>
<a href="#" onClick="expandnode()">dddd</a>
提示:
"javascripttest.jsp": Attribute value should be quoted at line 20, column 41(即冒号的位置)