document.createTextNode(

This commit is contained in:
Huang,Yonggang 2024-06-09 16:12:57 +08:00
parent c380d54a1e
commit 141defe55d
1 changed files with 10 additions and 10 deletions

View File

@ -86,23 +86,23 @@
const tblBody = document.createElement("tbody");
const row = document.createElement("tr");
const cell = document.createElement("td");
cell.appendChild("task");
cell.appendChild(document.createTextNode("task"));
row.appendChild(cell);
cell = document.createElement("td");
cell.appendChild("alloc");
cell.appendChild(document.createTextNode("alloc"));
row.appendChild(cell);
cell = document.createElement("td");
cell.appendChild("sold");
cell.appendChild(document.createTextNode("sold"));
row.appendChild(cell);
cell = document.createElement("td");
cell.appendChild("hold");
cell.appendChild(document.createTextNode("hold"));
row.appendChild(cell);
cell = document.createElement("td");
cell.appendChild("todo");
cell.appendChild(document.createTextNode("todo"));
row.appendChild(cell);
tblBody.appendChild(row);
@ -110,23 +110,23 @@
alert(task);
row = document.createElement("tr");
cell = document.createElement("td");
cell.appendChild(task);
cell.appendChild(document.createTextNode(task));
row.appendChild(cell);
cell = document.createElement("td");
cell.appendChild(statobj[task].alloc);
cell.appendChild(document.createTextNode(statobj[task].alloc));
row.appendChild(cell);
cell = document.createElement("td");
cell.appendChild(statobj[task].sold);
cell.appendChild(document.createTextNode(statobj[task].sold));
row.appendChild(cell);
cell = document.createElement("td");
cell.appendChild(statobj[task].hold);
cell.appendChild(document.createTextNode(statobj[task].hold));
row.appendChild(cell);
cell = document.createElement("td");
cell.appendChild(statobj[task].todo);
cell.appendChild(document.createTextNode(statobj[task].todo));
row.appendChild(cell);
tblBody.appendChild(row);
}