chart.js在qml里怎么用
1个回答
展开全部
用的是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!
我想在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!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询