jquery.load() not working on phonegap

前端 未结 2 483
悲&欢浪女
悲&欢浪女 2021-01-28 06:05

I am developing buyers guide app with phonegap. where i am trying to fetch some info from server using jquery. but when i run following code with phonegap its not working

<
2条回答
  •  滥情空心
    2021-01-28 06:28

    Do you have CORS enabled on the server?

    PhoneGap loads the index.html from the local filesystem and the same origin policy prevents ajax calls to different domains, such as localhost.

提交回复
热议问题