var json = $.getJSON(url);
console.log(json.item);
It prints undefined
in console, why?
What type of data will return when I use $.getJSON
?
And how can I load the JSON file as a Object?
I have search many key words but I can't get a solution.