jqueryajax即使出错也能获取数据
使用ajax jquery时,如果服务器响应404、400或任何4xx http响应,则不会返回url返回的实际数据 我的应用程序发送400个包含错误的json数据响应jqueryajax即使出错也能获取数据,jquery,ajax,Jquery,Ajax,使用ajax jquery时,如果服务器响应404、400或任何4xx http响应,则不会返回url返回的实际数据 我的应用程序发送400个包含错误的json数据响应 我想让我的ajax将json返回到dom中,这样我就可以看到发生了什么错误。有一个responseText属性,你检查过了吗?@BlackSheep theresponseText只返回error。你的代码在哪里?以及从服务器发送的responseText的示例?
我想让我的ajax将json返回到dom中,这样我就可以看到发生了什么错误。有一个
responseText
属性,你检查过了吗?@BlackSheep theresponseText
只返回error
。你的代码在哪里?以及从服务器发送的responseText的示例?