table parsing test no 1
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
$('#update').click(updateData;
|
$('#update').click(updateData);
|
||||||
function updateData () {
|
function updateData () {
|
||||||
const url = 'http://' + window.location.hostname + ':5000/data';
|
const url = 'http://' + window.location.hostname + ':5000/data';
|
||||||
$.get(url, function (data, status) {
|
$.get(url, function (data, status) {
|
||||||
$('#debug').text(data);
|
$('#debug').text(data);
|
||||||
|
for (const i in data[0]) {
|
||||||
|
$(i).text(data[0][i]);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user