0
wcf 서비스를 사용하기 위해 wcf 서비스와 phonegap 응용 프로그램을 만들었습니다. IIS를 사용하여 배포 할 때 Mywcf 서비스가 디버깅되지 않지만 "Visual Studio Development Server"를 사용하여 실행됩니다. 내 phonegap 응용 프로그램을 실행하면 성공 함수가 실행되지만 데이터에 "정의되지 않음"이 표시되고 오류 메시지가 표시됩니다. 내 폰갭 코드는 아래에로이다 :phonegap을 사용하여 wcf 서비스를 사용합니다.
$(document).ready(function() {
$.getJSON("http://localhost:20999/MobileService.svc/GetProductCategories", {
beforeSend: function (xhr) {
},complete: function() {
$.mobile.hidePageLoadingMsg();},
contentType: "application/json; charset=utf-8",
dataType: 'json',
type: 'GET',
success: function (data) {
alert("success");
alert("Exito " + JSON.stringify(data)); },
error: function() {
alert('Something awful happened');
}});});
문제가 무엇입니까 ???