谁能帮忙看一下这段js代码有什么问题
<script language="javaScript">
document.write("<table border=\"1\">");
for(i=1;i<=9;i++){
document.write("<tr>");
for(j=1;j<=9;j++){
if(j<=i){
document.write("<td>"+i+"*"+j+"="+i*j+"</td>");
}else{
document.write("<td>" "</td>");
}
}
document.write("</tr>");
}
document.write("</table>");
</script>
------解决方案--------------------document.write("<td>" "</td>");===>document.write("<td> </td>");
document.write("<table border=\"1\">");
for (i = 1;i <= 9;i++) {
document.write("<tr>");
for (j = 1;j <= 9;j++) {
if (j <= i) {
document.write("<td>" + i + "*" + j + "=" + i*j + "</td>");
} else {
document.write("<td> </td>");
}
}
document.write("</tr>");
}
document.write("</table>");