PhoneGap error - “Uncaught ReferenceError: cordova is not defined”

前端 未结 1 1179
北海茫月
北海茫月 2020-12-20 18:27

I\'m trying use the menu button on Android, with the PhoneGap. The problem is that I can\'t use it because appear this error on log:

\"Uncaught ReferenceError: cordo

1条回答
  •  猫巷女王i
    2020-12-20 19:29

    First please check that the path and file name to your cordova.js are correct. Then remove the onLoad event and write the deviceready event hook in the script file as shown below:

    
    
      
        
        
        
        
        
      
      
        

    Hello world!

    0 讨论(0)
提交回复
热议问题