jquery .load() function does not work under phonegap

前端 未结 2 1828
北海茫月
北海茫月 2021-01-25 06:37

jquery .load() function is not working under phonegap on iPad. it works in mobile safari very well. But it\'s not working in Phonegap app. Any help would be appreciated.

2条回答
  •  囚心锁ツ
    2021-01-25 07:02

    Try using a full URL.

    AFAIK PhoneGap is actually served as local files. If you want to access external assets or Ajax, then include the protocol, domain and port (if necessary) in the URL.

提交回复
热议问题