1
ios에서 webservice를 구현하기 위해 다음 코드를 작성했지만 거기에 언급 된 모든 js 파일을 포함했지만 여전히 작동하지 않습니다.phonegap 웹 서비스가 ios에서 작동하지 않습니까?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>90210 Lookup</title>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" src="script/xui.js"></script>
<script type="text/javascript" charset="utf-8">
x$.data = {};
x$(window).load(function(e){
x$("#returned_information").xhr("http://ws.geonames.org/postalCodeSearchJSON?postalcode=90210&maxRows=10",
{ callback: function(){
var codes = eval("("+this.responseText+")").postalCodes; /* this should be an array */
x$("#returned_information").html(codes[0].placeName);
}
}
);
});
</script>
</head>
<body>
<h1 id="returned_information">
Put Stuff in Me
</h1>
</body>
</html>
내가 누락 된 부분을 알려주십시오.