IE not triggering jQuery Ajax success

后端 未结 13 1133
心在旅途
心在旅途 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 11:07

    Try setting the cached-option to false.

       $.ajax({        
                async: false,
                cache: false, 
                type: "get",
                url:imgsArray[img],
                success:function(imgFile){
                        alert("success");
                        //do something useful
                        },
                        error:function(XMLHttpRequest,status,error){
                        //do nothing
                }
        });//ajax
    

提交回复
热议问题