visual-studio-2017 - 带有 apache cordova 的 Visual Studio 2017 应用程序在使用 Debug-Windowsx64-Local Machine 的 AJAX Post 上获得 NetworkError 但适用于 Android 和 IOS
问题描述
我在使用 Apache Cordova Proyect 时遇到了这个问题……调试与 Android Emulator 和 IOS 完美配合……但是在 Windows 中,我在函数中遇到 NetworkError(结果)……这是我的代码:
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");
},
});
}
解决方案
推荐阅读
- swiftui - 如何在新的 SwiftUI 应用生命周期中接受 CloudKit 共享?
- selenium - Selenium Python - 元素点击被拦截
- bitbucket - Dokku 和 bitbucket ci/cd
- python - K.clear_session() 在 Colab 中不起作用
- .net - 日期和日期时间存储在数据库中
- azure-devops - VSTS 构建步骤更改日志跟踪
- azure-devops - Can I create Release pipeline (CD) in Azure DevOps directly using YAML?
- java - 如何使用 Camel rabbitmq 手动确认 rabbitmq 消息
- typescript - 在 Firebase 中使用 onUpdate 函数时,如何检索返回的快照的子节点?
- python - Python Altair 热图中的掩码值