3
간단한 Windows 8 앱을 만들려고하는데 문제가 있습니다. 가 나는 오류 코드와 함께 실패 로컬 웹 서버에 XHR 요청을하려고하면 :WinJS.xhr 로컬 네트워크 오류
샘플 코드 0x2efd :
WinJS.xhr({ url: "http://192.168.0.30" }).then(
function completed(response) {
//var json = JSON.parse(response.responseText);
//var list = new WinJS.Binding.List(json.results);
console.log(response.responseText);
},
function error(error) { console.log(error) },
function progress(progress) { }
);
을하지만, 예를 들어 원격 IP를하려고 할 때 google.com이 작동합니다. 무엇이 잘못 되었나요?
쉽게 잊어 버릴 수 있습니다. –
또한, IP를 사용하려면 작동시키기 위해'localhost'가 그것을 사용하지 않았습니다. – kamranicus