table parsing test no 1
This commit is contained in:
1 parent
4b7f96a378
commit
2e263f1b14
1 file changed
+4
-1
@@ -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