Load external page on to Cordova/Phonegap application

前端 未结 2 640
情话喂你
情话喂你 2021-02-04 21:42

I have a Cordova/Phonegap application. that on start checks the internet connection. Actually the app executes local files, but I would, that when there is internet connection,

2条回答
  •  自闭症患者
    2021-02-04 22:23

    Unless I'm crazy, can't you just XHR the page and add it to the DOM? If using jQuery, just do it with $.get method.

    syntax -

    $.get(url, [data], [callback], [type])
    

提交回复
热议问题