version 1.57, 2024/03/29 21:16:42 |
version 1.62, 2024/03/29 21:27:35 |
Line 66 async function sendData() { |
|
Line 66 async function sendData() { |
|
// headers: { "Content-Type": "application/json" }, |
// headers: { "Content-Type": "application/json" }, |
// body: dataToSend |
// body: dataToSend |
//}) |
//}) |
// .then(resp => { |
// .then(resp => { |
// if (resp.status === 200) { |
// if (resp.status === 200) { |
// return resp.json() |
// return resp.json() |
// } else { |
// } else { |
Line 75 async function sendData() { |
|
Line 75 async function sendData() { |
|
// } |
// } |
// }) |
// }) |
// .then(dataJson => { |
// .then(dataJson => { |
// console.log(dataJson.get("a")); |
|
// dataReceived = JSON.parse(dataJson.getJSON); |
// dataReceived = JSON.parse(dataJson.getJSON); |
// }) |
// }) |
// .catch(err => { |
// .catch(err => { |
Line 84 async function sendData() { |
|
Line 83 async function sendData() { |
|
// }) |
// }) |
//console.log(`Received: ${dataReceived}`) |
//console.log(`Received: ${dataReceived}`) |
|
|
fetch('https://draft.hgk.global/feedbk/') |
fetch("/feedbk/") |
.then(response => response.json()) |
.then(response => response.json()) |
.then(json => console.log(json)) |
.then(json => console.log(json)) |
|
|