Last active
August 29, 2015 14:13
-
-
Save nekoTheShadow/8056f1f7c2c949194e1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 引数のうち、strにはPOSTしたい文字列を入れてください。 | |
function httpPost(url,str){ | |
xhr = new XMLHttpRequest(); | |
xhr.open( "POST", url, false ); | |
xhr.send(str); | |
return xhr.responseText; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment