つまり、実行時にテーブルを作成するのと同じように、もしそうなら、このコードが役立つと思います
var Products = response.value;
var s = new Array();
s[s.length] = "<table id='Productss' border = 1 bgcolor='Grey'>";
s[s.length] = "<th>" + "Product ID" + "</th>";
s[s.length] = "<th>" + "Product Name" + "</th>";
s[s.length] = "<th>" + "Unit" + "</th>";
s[s.length] = "<th>" + "Reorder Level" + "</th>";
s[s.length] = "<th>" + "Supplier Name" + "</th>";
s[s.length] = "<th>" + "Unit Price" + "</th>";
s[s.length] = "<th>" + "Units In Stock" + "</th>";
s[s.length] = "<th>" + "Units On Order" + "</th>";
for (var i = 0; i < Products.length; i++) {
s[s.length] = "<tr>";
s[s.length] = "<td>" + Products[i].ProductID + "</td>";
s[s.length] = "<td>" + Products[i].ProductName + "</td>";
s[s.length] = "<td>" + Products[i].UnitName + "</td>";
s[s.length] = "<td>" + Products[i].ReorderLevel + "</td>";
s[s.length] = "<td>" + Products[i].SupplierID + "</td>";
s[s.length] = "<td>" + Products[i].UnitPrice + "</td>";
s[s.length] = "<td>" + Products[i].UnitsInStock + "</td>";
s[s.length] = "<td>" + Products[i].UnitsOnOrder + "</td>";
s[s.length] = "</tr>";
}
s[s.length] = "</table>";
document.getElementById("DisplayResult").innerHTML = s.join("");
}
var Products その変数は Ajax メソッドのリターンを記述し、JAvascript でテーブルを描画し、それをスパンで結合します。これが結合のコードです
document.getElementById("DisplayResult").innerHTML = s.join("");
不明な点があればお知らせください