Tag: http status code 200

Jquery ajaxrequest xhr.status代码0但是html状态代码200

这不是一个跨站点请求问题,因为我的问题的大多数Google搜索答案都包含在内。 当我尝试用jquery函数.get和.load创建一个ajax请求时,我得到xhr.status 0 och xhr.statusText“error”。 但是在Firebug中,请求的页面加载了html状态代码200,我可以读取响应中的文本,响应标题看起来没问题。 我的代码: function GetProjectTask(e) { var loader = $(‘#’ + e + ‘tasks div.loader’); var content = $(‘#’ + e + ‘tasks div.content’); var img = $(‘#’ + e + ‘tasks img.collapseimg’); if (loader.html() == null || loader.html().trim() == ”) { if (content.html() == null || content.html() == ”) { […]