var xhr = new XMLHttpRequest();
xhr.open("POST", yourUrl, true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify({
value: value
}));
参考
https://stackoverflow.com/questions/6396101/pure-javascript-send-post-data-without-a-form