item and value

This commit is contained in:
Huang,Yonggang 2024-06-09 16:37:36 +08:00
parent 0475f8357b
commit 35393dffe8
1 changed files with 2 additions and 0 deletions

View File

@ -190,9 +190,11 @@
tableHTML += '</tr>';
data.forEach(item => {
alert(item);
tableHTML += `<tr><td>${item}</td>`;
alert(tableHTML);
Object.values(item).forEach(value => {
alert(value);
tableHTML += `<td>${value}</td>`;
alert(tableHTML);
});