Javascript Ember JS中IE9中的Ajax jQuery问题
我下面的代码在Chrome和Mozilla上运行,但在IE9+版本中不起作用。 我使用的是余烬JSJavascript Ember JS中IE9中的Ajax jQuery问题,javascript,jquery,html,ajax,ember.js,Javascript,Jquery,Html,Ajax,Ember.js,我下面的代码在Chrome和Mozilla上运行,但在IE9+版本中不起作用。 我使用的是余烬JS $.ajax({ type: "POST", contentType: "application/json; charset=UTF-8", url: OrgPortalENV.ABC.API_URL + "/test", data: JSON.stringify( jsonPayload ) }) // Received
$.ajax({
type: "POST",
contentType: "application/json; charset=UTF-8",
url: OrgPortalENV.ABC.API_URL + "/test",
data: JSON.stringify( jsonPayload )
})
// Received an HTTP 200 OK response
.done(
function(data) {
alert("done");
},
$.proxy(ABCAjax.handleHttpOkResponse, this)
)
// Received an HTTP 4XX or 5XX error response
.fail(
function(jqXHR, data) {
alert("fail");
// End the nice loading animation
},
$.proxy(ABCAjax.handleHttpErrorResponse, this)
);
我知道IE非常敏感,所以我按照Ajax函数的正确顺序使用不同的组合,但仍然不能工作DataType:($.browser.msie)?“文本”:“xml”或数据类型:($.browser.msie)?“Json”:“xml”或数据类型:($.browser.msie)?“text”:“Json”cache:true,async:true,crossDomain:true,dataType:Json,我在代码中尝试过,最后确定IE 9中的URL参数存在一些问题。