version 1.54, 2024/03/29 20:59:52 |
version 1.58, 2024/03/29 21:18:37 |
Line 75 fetch("/feedbk/", { |
|
Line 75 fetch("/feedbk/", { |
|
} |
} |
}) |
}) |
.then(dataJson => { |
.then(dataJson => { |
console.log(dataJson); |
console.log(dataJson.get("a")); |
dataReceived = JSON.parse(dataJson) |
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)) |
|
|
|
|
|
|
}, |
}, |
}); |
}); |