version 1.32, 2024/03/28 20:02:23 |
version 1.34, 2024/03/28 20:06:56 |
Line 51 async function sendData() { |
|
Line 51 async function sendData() { |
|
// console.log("Data: " + data + "\nStatus: " + status); |
// console.log("Data: " + data + "\nStatus: " + status); |
//}); |
//}); |
/* --------------------- */ |
/* --------------------- */ |
var response=""; |
var re=""; |
fetch('/feedbk/', { |
fetch('/feedbk/', { |
method: 'POST', |
method: 'POST', |
headers: { |
headers: { |
Line 60 fetch('/feedbk/', { |
|
Line 60 fetch('/feedbk/', { |
|
}, |
}, |
body: JSON.stringify({ "cfem": "a@b.ru", "cfsu" : "subject", "cfme" : "message", "cfto" : "token" }) |
body: JSON.stringify({ "cfem": "a@b.ru", "cfsu" : "subject", "cfme" : "message", "cfto" : "token" }) |
}) |
}) |
.then(response => response.json()) |
// .then(response => response.json()) |
.then(response => console.log(JSON.stringify(response))) |
// .then(response => console.log(JSON.stringify(response))) |
|
.then(re => response.text()); |
|
console.log(re); |
|
|
|
|
}, |
}, |