Heim  >  Fragen und Antworten  >  Hauptteil

ajax - html5+phonegap+jqm开发android应用,$.getJSON()无法执行……

执行到alert(pwd)都是正常的,但是就是死活不能执行接下来的$.getJSON(在PC浏览器上能执行,但是一到手机上就OVER……导致手机上不能登录)………求解……急急急急急急急急急!!!!!

天蓬老师天蓬老师2721 Tage vor703

Antworte allen(1)Ich werde antworten

  • 大家讲道理

    大家讲道理2017-04-17 11:19:06

    是不是 PhoneGap 的 config.xml 里没有允许请求相应的 host?

    也可以参照 http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1

    Antwort
    0
  • StornierenAntwort