Created
December 28, 2014 16:19
-
-
Save daiiz/a2533103ff5c2c68aba7 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 xhr = new XMLHttpRequest(); | |
xhr.open('GET', /* 動的に生成したAPIのURL */, true); | |
xhr.responseType = 'json'; | |
xhr.onload = function(e) { | |
/** | |
* Callback | |
* e.target.response.statuses にTweets情報が格納されている | |
*/ | |
} | |
xhr.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment