PhoneGap ajax call fails everytime

后端 未结 6 1973
臣服心动
臣服心动 2021-01-15 12:27

I am developing a mobile application using PhoneGap, and I have to access some services from another project. I am using jquery-2.0

6条回答
  •  旧时难觅i
    2021-01-15 13:18

    url of your query is localhost, thant means- the same device (android emulator or physical). I'm sure that this is your problem. You should use IP (or domain) of your api json server, maybe 192.168.1.1 (depending on your network configuration)

提交回复
热议问题