Gui*_*sch 3 javascript android angularjs cordova ionic-framework
我在我的cordova项目中得到了这个问题,用角度和离子创建.我已尽力而为,但它无法正常工作.
这是代码:
function getSuccess(response) {
$scope.modules = response.modules;
$scope.list = $scope.modules;
$scope.search = [
{str: ""}
];
}
$http({method: 'GET',
url: "http://xxx.xxx.xxx.xxx/api/modules"
})
.success(getSuccess)
.error(function (response){
alert("Damned");
});
Run Code Online (Sandbox Code Playgroud)
当然,IP是有效的,并且在Chrome浏览器中工作;)那是在我的控制器中.我已经<access origin="*"/>在我的配置文件中添加了它,在构建之后它仍然在我的Android设备上显示"Damned".
Cordova版本:5.0.0 Android版本:5.1
| 归档时间: |
|
| 查看次数: |
5751 次 |
| 最近记录: |