I am using phonegap and calling the opendatabase functi开发者_StackOverflowon although I am tracking alert(window.opendatabase); alerts "function(){}" the return result is null ?
This may be related to a ticket filed in the PhoneGap issue tracker:
http://phonegap.lighthouseapp.com/projects/20118/tickets/115-opendatabase-returns-null-in-android-22
It was resolved and pushed to the GitHub repository a few days ago by me :)
Try pulling the latest from GitHub, it should work for you.
精彩评论