在js里怎么导入qml模块
发布网友
发布时间:2024-09-30 08:52
我来回答
共1个回答
热心网友
时间:2024-11-28 08:53
用的是qt5.7
我想在js里加载数据库
.import QtQuick.LocalStorage 2.0 as LocalStorage
function loadDB()
{
var db = LocalStorage.openDatabaseSync("TestDB", "1.0", "This is db", 1000000);
}
永远报错啊,不是TypeError: Property 'openDatabaseSync' of object [object Object] is not a function
就是ReferenceError: LocalStorage is not defined!