Created
August 14, 2015 09:26
-
-
Save Ripley6811/ad3a64e7f871f06d022a 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
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.onreadystatechange = function () { | |
if (xmlhttp.readyState !== 4) return; | |
var res = JSON.parse(xmlhttp.response); | |
}; | |
xmlhttp.open('POST', url, true); | |
xmlhttp.setRequestHeader('Content-type', 'application/json'); | |
xmlhttp.send(params); | |
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.onreadystatechange = function () { | |
if (xmlhttp.readyState !== 4) return; | |
var res = JSON.parse(xmlhttp.response); | |
}; | |
xmlhttp.open('GET', '/cogroup/namelist', true); | |
xmlhttp.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment