Allow remote ajax calls in an Android Webview + jquery mobile

后端 未结 4 1312
执笔经年
执笔经年 2021-01-02 20:13

I\'m developing an javascript/HTML application with jquerymobile which makes ajax requests to a remote server. The application works fine on Chrome (only launching chrome wi

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-02 20:35

    Try this

    WebView web=(WebView) findViewById(R.id.webView1);
    web.getSettings().setJavaScriptEnabled(true);
    

提交回复
热议问题