How to wait till callback function returns?

后端 未结 3 430
悲哀的现实
悲哀的现实 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-19 23:58

    Don't try to fight the asynchrony: Your app might end up seeming unresponsive to the user. Use the querySuccess callback for any code that has to be executed afterwards.

提交回复
热议问题