version 1.34, 2024/03/28 20:06:56 |
version 1.36, 2024/03/28 20:13:40 |
Line 52 async function sendData() { |
|
Line 52 async function sendData() { |
|
//}); |
//}); |
/* --------------------- */ |
/* --------------------- */ |
var re=""; |
var re=""; |
fetch('/feedbk/', { |
re=fetch('/feedbk/', { |
method: 'POST', |
method: 'POST', |
headers: { |
headers: { |
'Accept': 'application/json', |
'Accept': 'application/json', |
'Content-Type': 'application/json' |
'Content-Type': 'application/json' |
}, |
}, |
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.text()); |
console.log(re); |
|
|
|
|
|
}, |
}, |