📌  相关文章
📜  sqlite.create "capacitor" 无法读取未定义的属性 'then' - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:16.986000             🧑  作者: Mango

代码示例1
// note: This code needs to be run on a device, not in a PC browser.
// if you
let connection = this.sqlite.create({
    name: 'cards.db',
    location: 'default'
});

// se a conexão for válida
if(connection)
    connection.then((db: SQLiteObject) => {})