deviceReady not working in PhoneGap application, how to?

后端 未结 13 1152
攒了一身酷
攒了一身酷 2020-12-06 09:52

I have a simple PhoneGap application as fallows:



    
        PhoneGap powered App
         


        
13条回答
  •  無奈伤痛
    2020-12-06 10:33

    Just in case you have the same problem as me, I didn't know is needed to include the cordova.js script in your index.html, you don't have to provide the file or the reference, just include this line:

      
    

    and then Cordova will use the library when compiling, after that the event is dispatched.

提交回复
热议问题