以下代码有错吗?为什么不能显示
<>
<script type="text/javascript">
window.onload=function()
{
var table=document.createElement("table");
var th=document.createElement("thead");
var tb=docu=document.createElement("tbody");
var tf=doucument.createElement("tfoot");
for(var i=0;i<9;i++){
tb.insertRow(i);
for( var j=0;j<=i;j++){
tb.rows[i].insertCell(j);
tb.rows[i].cells[j].appendChild(document.createTextNode((j+1)+"*"+(i+1)+"="+((j+1)*(i+1))));
}
}
table.appendChild(th);
table.appendChild(tf);
table.appendChild(tb);
document.boby.appendChild(table)
}
错落年间我许你一世
viviier
随时随地看视频慕课网APP
相关分类