Skip to content

Instantly share code, notes, and snippets.

@FZX
Created March 23, 2017 17:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FZX/5d73b6ae18d852d76ddbfb27bfd90b08 to your computer and use it in GitHub Desktop.
Save FZX/5d73b6ae18d852d76ddbfb27bfd90b08 to your computer and use it in GitHub Desktop.
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