【发布时间】:2013-06-29 22:44:11
【问题描述】:
我正在尝试执行以下 jQuery.ajax 请求,但遇到了一个奇怪的问题。
当我使用 IE9 发送此请求时,虽然我发送了 contentType 参数,但在 chrome 上该请求正常。
$.ajax({
type: "POST",
contentType: "application/x-www-form-urlencoded",
url: this.AgentServiceUrl + "/" + methodName,
data: data,
async: true,
success: function (xml, textStatus) { if (successHandler != null) successHandler(xml, textStatus); },
error: function (xmlHttpRequest, textStatus, errorThrown) { if (errorHandler != null) errorHandler(state, xmlHttpRequest, textStatus, errorThrown); }
});
我正在使用 jQuery 2.0.2 和 jQuery.XDomainRequest.js 来处理跨域请求。
我能做什么??
【问题讨论】:
标签: internet-explorer jquery post content-type