$.ajax在blackberry10 phonegap中不起作用,但在android phonegap中起作用

$.ajax在blackberry10 phonegap中不起作用,但在android phonegap中起作用,ajax,cordova,Ajax,Cordova,使用 数据类型:json 而不是jsonp $.ajax({ async: true, type: "POST", url: "http://'localhost'/Health/appointment?DoctorName=" + u + "&Password=" + p + "&dbversion=1.3", contentType: "application/json", dataType:

使用 数据类型:json
而不是jsonp

$.ajax({ 
        async: true,
        type: "POST",
        url: "http://'localhost'/Health/appointment?DoctorName=" + u + "&Password=" + p + "&dbversion=1.3",
        contentType: "application/json",
        dataType: "jsonp",                               
        success: function (msg) {
             //alert("in success: " + JSON.stringify(msg) + " " + msg.flag + " " + msg.UserID + " " + msg.DoctorId);
            window.location.href = 'option.html?UserID=' + msg.UserID + '&DoctorId=' + msg.DoctorId;

        },error: function(response) {
            alert("in Error");
        }               
});