,如果我跑这所有的同时$.getjson
运行 我想等待第一的getJSON完成,然后下一个 希望你能帮助我在此先感谢
//start loop
param.forEach(item, function() {
$.getJSON(item, function (data) {
$.each(data, function (i, val) {
//store data in html
$('#tabledata tbody').append(html);
});
});
});
尝试获取单个getJson调用中的数据 –