Created
November 27, 2017 14:11
-
-
Save seogi1004/ae49ec975b84f159ac14309d5c0ea6e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
onload=function() { | |
var name; | |
$.getJSON("test.json", "", function(res) { | |
name = res.name; | |
}); | |
setTimeout(function() { | |
alert(name); | |
}, 100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment