![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ajax
yezitoo
这个作者很懒,什么都没留下…
展开
-
jQuery ajax设置全局配置
$.ajaxSetup({ dataType : "json", contentType : "application/json", headers : { 'Content-Type' : 'application/x-www-form-urlencoded' }, error : function(jqXHR, textStatus, ...转载 2019-04-22 21:36:44 · 3821 阅读 · 0 评论 -
ajax请求失败的状态码都是0
前言今天遇到个奇怪的问题,使用JQuery的ajax请求,后台的Controller层也接收到请求了,一切处理很正常,但是很奇怪,浏览器Debug发现,responseText是”error”,状态码是0.请求源码如下:$.ajax({ type: "POST", url: targetUrl, cache: fa...转载 2019-07-17 11:47:05 · 983 阅读 · 0 评论