version 1.56, 2024/03/29 21:03:44 |
version 1.58, 2024/03/29 21:18:37 |
Line 76 fetch("/feedbk/", { |
|
Line 76 fetch("/feedbk/", { |
|
}) |
}) |
.then(dataJson => { |
.then(dataJson => { |
console.log(dataJson.get("a")); |
console.log(dataJson.get("a")); |
// dataReceived = JSON.parse(dataJson.getJSON); |
dataReceived = JSON.parse(dataJson.getJSON); |
}) |
}) |
.catch(err => { |
.catch(err => { |
if (err === "server") return |
if (err === "server") return |
console.log(err) |
console.log(err) |
}) |
}) |
console.log(`Received: ${dataReceived}`) |
console.log(`Received: ${dataReceived}`) |
|
|
|
//fetch('https://draft.hgk.global/feedbk/') |
|
// .then(response => response.json()) |
|
// .then(json => console.log(json)) |
|
|
|
|
|
|
}, |
}, |
}); |
}); |