Created
March 23, 2017 17:30
-
-
Save FZX/5d73b6ae18d852d76ddbfb27bfd90b08 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 json_data = null; | |
function get_data(mode){ | |
$.ajax({ | |
url: "/json_nodes", | |
method: "POST", | |
data: {func: "init"}, | |
success: function(json){ | |
json_data = json; | |
//console.log(json_data); | |
} | |
}); | |
//json_data = "hey brp"; | |
//return json_data; | |
} | |
testingvar = get_data(); | |
console.log(testingvar); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment