The ajax request under IE9 failed? How to solve

$.ajax({
               url: SERVER_URL+"/COM/resourcePro.do?city="+$cityName+"&industry="+$manageType+"&pageIndex="+pageIndex+"&pageSize="+pageSize+"&appKey="+$key,
               type: "GET",//get
               dataType: "json", //json
               success: function(data) {// 
                   if(data.code!==0){
                       $("-sharpanotherBatch").hide();
                    $("-sharpmask").hide();
                    layer.msg(data.msg+"");
                    
                }

                 $("-sharpanotherBatch").show();
                 $("-sharpmask").hide()
                     var manageData = data.data;
                    $totalCount =data.data.totalCount
                    $("-sharpmTmpl").tmpl(manageData).appendTo("-sharpmanageTmpl");
                   
               },
               error:function(error){
                if(error.status==400){
                        $("-sharpmask").hide();
                        $("-sharpanotherBatch").hide();
                        layer.msg("");
                        return;
                }
                    
            }
            })
Jan.19,2022

when you encounter this kind of problem, you can usually find the cause immediately by opening the console.
Open the console to see if the console has reported an error, and see whether the request has been sent
can also simplify ajax retesting


I am more suspicious that it is the jquery version. Ajax is the basic feature. The following IE9 should be available


introduce http://cdnjs.cloudflare.com/a.
into your page and see

Menu