Visual studio 2017 带有apache cordova的Visual Studio 2017应用程序在AJAX Post上使用Debug-Windowsx64-Local机器获取NetworkError,但可与Android和IOS一起使用

Visual studio 2017 带有apache cordova的Visual Studio 2017应用程序在AJAX Post上使用Debug-Windowsx64-Local机器获取NetworkError,但可与Android和IOS一起使用,visual-studio-2017,apache-cordova,jquery-mobile-ajax,Visual Studio 2017,Apache Cordova,Jquery Mobile Ajax,我有一个Apache Cordova项目的问题。。。调试与Android Emulator和IOS完美结合。。。。但是在windows中,我在函数(resulta)中得到了一个网络错误。。。。这是我的代码: function Vendedores() { $.ajax({ type: "POST", url: 'http://' + document.getElementById("servidor").value + '/Proformas.aspx/C

我有一个Apache Cordova项目的问题。。。调试与Android Emulator和IOS完美结合。。。。但是在windows中,我在函数(resulta)中得到了一个网络错误。。。。这是我的代码:

function Vendedores() {
    $.ajax({
        type: "POST",
        url: 'http://' + document.getElementById("servidor").value + '/Proformas.aspx/CargaVendedores',
        data: '{pnumero:"0"}',
        contentType: "application/json; charset=utf-8",
        datatype: "json",
        crossDomain: true,
        async: false,
        success: function (resulta) {
            $.each(resulta, function (i, field) {
                //some stuff....
            });
        },
        error: function (resulta) {
            alert("no se pudo cargar los vendedores, revisar  conectividad con el servidor");
        },
    });
}

请捕获resulta的价值,并将其包含在您的问题中,以帮助社区了解您遇到的错误。。。错误显示:readyState 0数字状态0数字状态文本“NetworkError”字符串