以下代碼有錯(cuò)嗎?為什么不能顯示<>
<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)
?}
關(guān)于dom的表格對(duì)象不能顯示的問(wèn)題
錯(cuò)落年間我許你一世
2016-11-29 21:41:14