table parsing test no 1

This commit is contained in:
d3m1g0d
2019-04-06 15:51:38 +02:00
parent 4b7f96a378
commit 2e263f1b14

View File

@@ -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]);
}
}) })
} }