How can wait for ajax call ends before reloop in foreach?

后端 未结 0 365
温柔的废话
温柔的废话 2021-02-01 02:44

im tryng to use Promises but i don\'t know if in this case, are usefull.

$.getJSON("url", "data", function(json) {
    json.forEach(function(i         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题