Answers for "how to method post in javascript"

1

javascript send post

var xhr = new XMLHttpRequest();
xhr.open("POST", yourUrl, true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify({
    value: value
}));
Posted by: Guest on December-27-2020

Code answers related to "how to method post in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language