显示附加标记的JSON输出<;?xml版本=";1.0“;编码=";utf-8“&燃气轮机;如何删除

显示附加标记的JSON输出<;?xml版本=";1.0“;编码=";utf-8“&燃气轮机;如何删除,json,tags,output,Json,Tags,Output,JSON输出,显示附加标记如何删除,因为它与IE一起工作,而不与任何其他浏览器一起工作 $.ajax({ type: "GET", url: "http://xxx.xxx.xxx.xx/zzz/abc.asmx/method", data: {}, xhrFields: { withCredentials: true }, crossDomain: true, dataType: "jsonp", jsonp: "

JSON输出,显示附加标记
如何删除,因为它与IE一起工作,而不与任何其他浏览器一起工作

$.ajax({
    type: "GET",
    url: "http://xxx.xxx.xxx.xx/zzz/abc.asmx/method",
    data: {},
    xhrFields: {
        withCredentials: true
    },
    crossDomain: true,
    dataType: "jsonp",
    jsonp: "jsoncallback",
    jsonpCallback: "SMS",
    cache: true,
    success: function (msg) {

        var c = eval(msg.d);
        for (var i in c) {
            treminalId = c[i]['DDD'];
            console.log(DDD);
        }

    },
    error: function (msg) {
        alert(JSON.stringify(msg));
    }
});
试试这个

$.ajax({
    type: "GET",
    url: "http://xxx.xxx.xxx.xx/zzz/abc.asmx/method",
    data: formToJSON(),
    xhrFields: {
        withCredentials: true
    },
    crossDomain: true,
    dataType: "jsonp",
    jsonp: "jsoncallback",
    jsonpCallback: "SMS",
    cache: true,
    success: function(msg) {
        var c = eval(msg.d);
        for (var i in c) {
            treminalId = c[i]['DDD'];
            console.log(DDD);
        }
    },
    error: function(msg) {
        alert(msg);
    }
});

function formToJSON() {
    return JSON.stringify({});
}

谢谢你的来信。但它仍然在控制台中显示以下错误。“网络错误:500内部服务器错误-