浏览器似乎不喜欢我对insertRow的使用,我之前已经使用过它(在同一个文档中)并且它工作正常但是,它并不喜欢它的使用。
function loadTable()
{
var historyTable = document.getElementById("history");
var historyRow = historyTable.insertRow(0);
var historyTitle = historyRow.insertCell(0);
var historyTotal = historyRow.insertCell(1);
var historyDate = historyRow.insertCell(2);
historyTitle.innerHTML = localStorage["slot" + loadSlot + " title"];
historyTotal.innerHTML = localStorage["slot" + loadSlot + " total"];
historyDate.innerHTML = localStorage["slot" + loadSlot + " date"];
load();
}