Created
February 10, 2010 02:23
-
-
Save hazisarashi/299950 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
end = new fnc(); | |
$.getJSON(url1,function(json){ end.a = json; end.check(); }); | |
$.getJSON(url2,function(json){ end.b = json; end.check(); }); | |
function fnc(){ | |
this.a; | |
this.b; | |
} | |
fnc.prototype.check = function(){ | |
if ( this.a && this.b ){ | |
//2つとも取得できた! | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment