Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var nodes=[];
- $.getJSON('/get/data', function(data) {
- nodes.push(data);
- });
- //debugger
- console.log(nodes);
- console.log(nodes[0]);
- [ ]
- undefined
- []
- []
- []
- [[Object { id=10, label="foo"}, Object { id=9, label="bar"}, 43 more...]]
- [Object { id=10, label="foo"}, Object { id=9, label="bar"}, ...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement