weixin_33713350 2018-06-14 08:48 采纳率: 0%
浏览 283

什么是Ajax中的url

I am developing a cross platform application using cordova. I have to send data from a form in app to a database which is on the on a local server created using XAMPP. MY .php file is in htdocs in xampp. I have tried many different things but nothing worked, the problem seems to be with ajax url. What value is given in ajax url. Now, my database is on my laptop using xampp server.

  • 写回答

1条回答 默认 最新

  • weixin_33743248 2018-06-14 13:51
    关注

    You should give webserver ip adresse and path to you'r PHP file.

    Don't forget you will test from an Android or IOS apps and so there havent access to localhost.

    So if you'r PHP file path is : localhost/hello.php you have to check you'r ip adress (cmd -> ipconfig) and then use this url on you'r ajax request : 192.168.XXX.XXX/hello.php

    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料