我试图制作一个简单的
Windows 8应用程序,但我有一个问题.
当我尝试向本地Web服务器发出xhr请求时,它失败并显示错误代码:0x2efd
当我尝试向本地Web服务器发出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时,它可以工作.
出了什么问题?