IS
Size: a a a
IS
JS
ОТВЕТ {"coupon":"CP-WSLQD-OMQDW7M"}<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
setTimeout(() => {
let coupon = '';
coupon = CP-WSLQD-OMQDW7M;
console.log("КУПОН ",coupon)
var myText = document.createElement("textarea")
myText.value = coupon;
myText.value = myText.value.replace(/</g,"<");
myText.value = myText.value.replace(/>/g,">");
document.body.appendChild(myText)
myText.focus();
myText.select();
document.execCommand('copy');
document.body.removeChild(myText);
}, 500);
</script>
</body>
</html>
IS
IS
l1
КК
JS
IS
response.json()
на response.text()
и выведите в console.log()
JS
JS
IS
IS
l1
КК
JS
function sendRequest(){
return fetch('https://crm.all-stars.by/local/custom/index.php', {
method: 'post',
headers: {"Content-Type": "application/json"},
body: bodyData
}).then(response => {
console.log("response",response)
return response.text()
})
}
sendRequest()
.then(data => console.log(JSON.parse(data)))
IS
IS
IS
JS