0
我正在使用Visual Studio 2015和离子,我已经能够为Windows Phone 8.1构建。我创建了一个登录页面来查询另一台服务器上的php,但是我得到了这样的问题:SCRIPT7002:XMLHttpRequest:网络错误0x2efd,由于错误00002efd,无法完成操作。 index.html 错误。
我的代码试图提出一个要求是SCRIPT7002:XMLHttpRequest:网络错误0x2efd,由于错误00002efd,无法完成操作。 index.html
var login = function(name, pw) {
return $q(function(resolve, reject) {
$http.post('http://192.167.180.1//logn/sear.php',{ 'pin': pw }).then(
function(result) {
// No result here..
var re=result.data.split(",");
console.log(re[3]);
if ((re[0] == 0)) {
// Make a request and receive your auth token from your server
storeUserCredentials(re[2]);
useCredentials(re[1]+" "+re[3]+" "+re[4]);
console.log(LOCAL_TOKEN_KEY);
resolve('Login success.');
} else if(result.data == 1) {
reject('Login Failed.');
}
}, function(err) {
// $scope.response = err.records;
console.log("error");
});
});
};