如何使用js在頁面中繪製表格

1.先寫一個<table>,中間放入<tbody>,但是<tbogy>什麼也不加 2.在js中寫入方法,繪製表格 其核心語句就是: var row=document.createElement_x("tr"); 就是創建行 var cell=document.createElement_x("td"); 就是創建列 cell.appendChild(document.createTextNode(
相關文章
相關標籤/搜索