首页 > 解决方案 > “连接”类型上不存在属性“exportJson”...使用 JS Store 时

问题描述

connection.exportJson({
    from: "Table_Name",
    where: {
        Column1: some_value,
        Column2: some_another_value
    }
}).then(function() {
    console.log('Successfully exported');
}).catch(function(error) {
    console.log(error);
});

// 尝试使用 JSStore 导出数据库

标签: javascriptangular

解决方案


exportJsonapi 已从 jsstore 中删除。如果你使用的是 v4 的 jsstore,你可以使用idbstudio来导出Json。

否则看看这个线程 - https://github.com/ujjwalguptaofficial/JsStore/issues/115。这提供了 exportJson 的代码片段。


推荐阅读