How to wait till callback function returns?

后端 未结 3 431
悲哀的现实
悲哀的现实 2021-01-19 23:10

I\'m making an android application using phonegap. I\'m using phonegap\'s Storage api for querying a database. here\'s my code:

function directPath(src, dest         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-20 00:09

    You don't have to wait... Just write your code in querySuccess to execute it afterwards....

提交回复
热议问题