Pouchdb 在哪里将附件保存到我们的本地电脑?我们可以检查哪个文件夹?
where did Pouchdb save the attachments to our local pc ? which folder can we check it?
[我刚接触 pouchdb。我使用演示代码将文件保存到本地电脑:
var db = new PouchDB('todos');
var attachment =
"TGVnZW5kYXJ5IGhlYXJ0cywgdGVhciB1cyBhbGwgYXBhcnQKTWFrZS" +
"BvdXIgZW1vdGlvbnMgYmxlZWQsIGNyeWluZyBvdXQgaW4gbmVlZA==";
db.putAttachment('this0058089', '55ee5.txt', attachment, 'text/plain').then(function(result) {
// handle result
console.log(result);
}).catch(function(err) {
console.log(err);
});
我们保存的文件可以查看哪个文件夹?或者我们如何检查它?
这是我的项目,我没有找到我保存的文件。
这是我的存储空间,它是空的。
pouchDB 充当适配器,与浏览器数据库中的浏览器本机通信(它可以是 IndexedDB、Web SQL 等)。在 chrome 浏览器的情况下,数据将存储在 'IndexedDB' 中。
您可以前往'Developer Tools -> Resources -> IndexedDB'查看存储的数据。
[我刚接触 pouchdb。我使用演示代码将文件保存到本地电脑:
var db = new PouchDB('todos');
var attachment =
"TGVnZW5kYXJ5IGhlYXJ0cywgdGVhciB1cyBhbGwgYXBhcnQKTWFrZS" +
"BvdXIgZW1vdGlvbnMgYmxlZWQsIGNyeWluZyBvdXQgaW4gbmVlZA==";
db.putAttachment('this0058089', '55ee5.txt', attachment, 'text/plain').then(function(result) {
// handle result
console.log(result);
}).catch(function(err) {
console.log(err);
});
我们保存的文件可以查看哪个文件夹?或者我们如何检查它?
这是我的项目,我没有找到我保存的文件。
pouchDB 充当适配器,与浏览器数据库中的浏览器本机通信(它可以是 IndexedDB、Web SQL 等)。在 chrome 浏览器的情况下,数据将存储在 'IndexedDB' 中。
您可以前往'Developer Tools -> Resources -> IndexedDB'查看存储的数据。