0
$.ajax({        
    //check all selections are made
    type: "POST",
    url: "checkin_process.php",
    dataType: "json",
    data: dataString,                                    
    sucsess: function(){
        // alert(data.success);
        alert("sucess");
        $("#message").fadeOut(5000);  
    },
    statusCode: {            
        406: function() {                
            alert("sucess");
        },            
        409: function() {                
            alert("err");
        }            
    }
});

在这段代码中,ajax 请求只返回错误而不是成功。

但在json文件中,它会正确返回 json 编码的数据。知道有什么问题吗?

4

0 回答 0