onDeviceReady not firing in PhoneGap hello world app

后端 未结 4 2009
梦如初夏
梦如初夏 2020-11-30 16:05

I\'m trying to do a simple alert(\'test\') app, but the event isn\'t being fired, this is the code:

function onLoad() {
    document.addEventListener("de         


        
4条回答
  •  再見小時候
    2020-11-30 16:28

    Put () at the end of onDeviceReady?

    onDeviceReady()
    

    Let me know if this is right guys, it worked for me when testing on the browser

提交回复
热议问题