修正變數宣告位置
This commit is contained in:
parent
4d0221e5a9
commit
bc3bcd9f07
@ -15,6 +15,9 @@ if (localStorage.getItem('temp_date') !== null) {
|
|||||||
dateInput.value = formattedDate;
|
dateInput.value = formattedDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let table = document.createElement("table");
|
||||||
|
let thead = document.createElement("thead");
|
||||||
|
let tbody = document.createElement("tbody");
|
||||||
generateTable();
|
generateTable();
|
||||||
|
|
||||||
getDateOfRecords();
|
getDateOfRecords();
|
||||||
@ -22,10 +25,6 @@ getDateOfRecords();
|
|||||||
setInterval(getDateOfRecords, 2000);
|
setInterval(getDateOfRecords, 2000);
|
||||||
|
|
||||||
function generateTable() {
|
function generateTable() {
|
||||||
let table = document.createElement("table");
|
|
||||||
let thead = document.createElement("thead");
|
|
||||||
let tbody = document.createElement("tbody");
|
|
||||||
|
|
||||||
table.appendChild(thead);
|
table.appendChild(thead);
|
||||||
table.appendChild(tbody);
|
table.appendChild(tbody);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user