1
hao
2025-05-20 8e24c6fea30d9b179375ee2893710cdec2443b13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * ajax异常
 * */
function ajaxError(){
 
    
    $.ajax({
        url: "/error/ajaxError",
        data:"",
        type: "GET",
        success:function(data){
            //异常过滤处理
            if(isError(data)){
                alert(data);
            }
        },
        error:function(e){
            //也可通过error控制请求失败的情况
            //console.log("e:"+e);
        }
    });
}