IE not triggering jQuery Ajax success

后端 未结 13 1137
心在旅途
心在旅途 2020-12-06 10:50

I\'m working on a script to load some images async using jQuery.

Here is a code snippet of the function that loads the images -

try{
    for(img in i         


        
13条回答
  •  醉酒成梦
    2020-12-06 10:59

    Maybe there is a problem with encoding. try this

    $.ajax({
            type: 'GET',
            url: encodeURI(url ),
            dataType: 'text',
            success: function (data) {
                                result = JSON.parse(JSON.parse(data))
                                                    }
           });
    

提交回复
热议问题