📜  带有 javascript 代码示例的本地数据库

📅  最后修改于: 2022-03-11 15:02:18.356000             🧑  作者: Mango

代码示例2
//get in GitHub
//more info in https://pouchdb.com
var db = new PouchDB('dbname');

db.put({
  _id: 'dave@gmail.com',
  name: 'David',
  age: 69
});

db.changes().on('change', function() {
  console.log('Ch-Ch-Changes');
});

db.replicate.to('http://example.com/mydb');