Parallel JSONP requests in jQuery do not trigger multiple “callback events”?

前端 未结 4 1212
[愿得一人]
[愿得一人] 2020-12-30 13:09

I am experiencing an issue in jQuery when I do multiple jsonp requests, all with the same jsonpCallback function. It seems that only for the one of those the callback functi

4条回答
  •  [愿得一人]
    2020-12-30 13:32

    Not sure but the response I get from that call to the github API does not include gravatar_id.

    This worked for me:

    function getGravatar(response){
        var link = response.data.avatar_url;
        $('#list').append('
    '); }

提交回复
热议问题