update 1902111331
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
function getReportFromServer() {
|
function getReportFromServer() {
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
|
|
||||||
xhr.onload = function() {
|
xhr.onload = function() {
|
||||||
if (xhr.status >= 200 && xhr.status < 400) {
|
if (xhr.status >= 200 && xhr.status < 400) {
|
||||||
var repObj = JSON.parse(xhr.responseText),
|
var repObj = JSON.parse(xhr.responseText),
|
||||||
@@ -11,9 +13,12 @@ function getReportFromServer() {
|
|||||||
content += '<td>' + repObj[repKeys[i]].payroll.total + '</td>';
|
content += '<td>' + repObj[repKeys[i]].payroll.total + '</td>';
|
||||||
content += '<td>' + repObj[repKeys[i]].expense.total + '</td></tr>'
|
content += '<td>' + repObj[repKeys[i]].expense.total + '</td></tr>'
|
||||||
}
|
}
|
||||||
|
var rh = xhr.getAllResponseHeaders();
|
||||||
|
}
|
||||||
table.innerHTML = content;
|
table.innerHTML = content;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
xhr.open('GET', 'Report.json', true);
|
xhr.open('GET', 'Report.json', true);
|
||||||
xhr.send();
|
xhr.send();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user