LocalFileSystem is not defined PhoneGap (Build) in Android

前端 未结 1 1921
不思量自难忘°
不思量自难忘° 2021-02-11 11:18

I have the following code:

function wait(){
    $(document).ready(function() {
        //alert(\"Dentro de ready\");
        document.addEventListener(\"devicere         


        
1条回答
  •  广开言路
    2021-02-11 11:43

    It isn't:

    document.addEventListener("deviceready", init(), true); 
    

    it should be:

    document.addEventListener("deviceready", init, true); 
    

    having the () after init calls that function immediately before the deviceready event is fired.

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