che*_*zer 5 ajax jquery post internet-explorer error-code
这是我的ajax设置:
$.support.cors = true;
$.ajax({
beforeSend: function ()
{
},
type: "POST",
url: "test.cgx",
data: hex_str,
dataType: "xml",
processData: false,
contentType: "text/xml; charset=utf-8",
success: function (msg)
{
},
error: function (msg)
{
}
});
Run Code Online (Sandbox Code Playgroud)
如果数据 - hexstr 小于4个字符(例如hex_str ="3A"),我收到以下错误(请求待处理1分钟后):
XMLHttpRequest:网络错误0x2f78,由于错误00002f78无法完成操作.
这只发生在IE,FF和Chrome可以发布任何数据大小.我发送的数据不是XML格式,它只是Hex数据(我需要 contentType: "text/xml; charset=utf-8" 其他原因).
我正在使用Jquery 1.8.2
小智 1
我遇到了同样的问题,只需将此行放在您的标题中,我希望它对您有用
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3674 次 |
| 最近记录: |