Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Ember JS中IE9中的Ajax jQuery问题_Javascript_Jquery_Html_Ajax_Ember.js - Fatal编程技术网

Javascript Ember JS中IE9中的Ajax jQuery问题

Javascript 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

我下面的代码在Chrome和Mozilla上运行,但在IE9+版本中不起作用。 我使用的是余烬JS

$.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参数存在一些问题。