JavaScript
17
Вклад в тег
if (!document.body.hasAttribute('alreadyClicked')) {
document.body.setAttribute('alreadyClicked', 'true');
$("#year-30").click();
}
var data = {
"username": this.state.username,
"password": this.state.password
}
fetch("https://....", {
method: "POST",
headers: headers,
body: JSON.stringify(data)
})
.then(function(response){
return response.json();
})
.then(function(data){
console.log(data)
});