新手求教,post请求在浏览器成功,在android上失败
求教,php放在ftp服务器上,然后使用$http.post获取数据,浏览器测试成功,但是打包后在手机上测试就一直是error这是php头部
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
header('Content-type: text/json'); 1.检查手机上面能访问你的接口吗
2.手机上面调试看看给服务器发起请求了吗,请求一下服务器可以写个log
3.再就是看返回什么错误
页:
[1]