【发布时间】:2011-09-07 11:32:01
【问题描述】:
我试图使用 jQuery .ajax 从 phonegap android 应用程序调用 web 服务 但我得到的响应为空。
$.ajax({ 类型:“获取”, 数据:'{大陆:"' + $('#txtContinent').val() + '"}', 网址:“http://localhost:60931/Service1.asmx/GetCountries”,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(response) {
alert(response);
},
failure: function(msg) {
$('#result').empty().append(msg);
}
});
任何人都可以帮助我使用 jQuery .ajax 从 phonegap 应用程序调用 Web 服务
【问题讨论】:
标签: android web-services jquery cordova