我想在visual studio中使用cordova编写一个多平台应用程序;我需要使用预填充的数据库,但我不知道该怎么做。我尝试使用litehelpers/Cordova-sqlite-storage,但没有结果。
谢谢
发布于 2015-07-06 17:36:41
如果你能提到你所面临的确切问题,它将会有所帮助。假设您刚刚开始使用sqllite插件,您可以在这里查看类似的问题- Ionic Prepopulated Database with Antair Cordova SQLitePlugin [help request]
您可以创建sqllite数据库文件并使用SQLLite插件导入。
window.sqlitePlugin.importPrepopulatedDatabase({file:"mydb.sqlite","importIfExists":true});db = window.sqlitePlugin.openDatabase({name:"mydb.sqlite"});
https://stackoverflow.com/questions/31241959
复制相似问题