Answer the question
In order to leave comments, you need to log in
What is the peculiarity of loading data via $.getJSON?
I load json data from a file and pass it to a variable.
var tests;
var data = $.getJSON( "html.json", function() {
tests = JSON.parse(data.responseText);
});
var genListData = _.template(document.getElementById('list-template').innerHTML);
document.write(genListData(tests[1]));
var tests ={ some json };
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question