We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After react runs the restart program in electron, the cached data in electron is lost, and the web page is not lost。
const db = new PouchDB("testdb"); const onCeateDB = () => { const todo = { _id: new Date().toISOString(), title: `这是一条数据${Date.now()}`, completed: false, }; db.put(todo, function callback(err, result) { if (!err) { console.log("Successfully posted a todo!", result); } }); }; const onGetData = () => { db.allDocs({ include_docs: true, descending: true }, function (err, doc) { console.log(doc.rows); }); }; <button onClick={onCeateDB}>创建数据库</button> <button onClick={onGetData}>获取数据库</button>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After react runs the restart program in electron, the cached data in electron is lost, and the web page is not lost。
The text was updated successfully, but these errors were encountered: