没有合适的资源?快使用搜索试试~ 我知道了~
delta-pouch:PouchDB的无冲突协作编辑
共18个文件
js:5个
json:3个
html:3个
需积分: 5 1 下载量 176 浏览量
2021-05-11
18:49:03
上传
评论
收藏 135KB ZIP 举报
温馨提示
三角袋 一个PouchDB插件,用于部分更新,它使用“每个文档都是一个增量”存储模式。 您可以使用delta pouch启用相同文档的无冲突协作编辑。 例子 var db = new PouchDB ( 'pages' ) ; // Create a new page db . save ( { url : 'google.com' , views : 0 } ) . then ( function ( doc ) { // Update only the views attribute db . save ( { $id : doc . $id , // Set the id views : 1 } ) ; } ) ; 注意:如果您尝试使用db.put()内置的db.put()类似操作,则url属性将被清空。 现场演示:个人资料 现场演示:网站 用法 要使用此
资源推荐
资源详情
资源评论
收起资源包目录
delta-pouch-master.zip (18个子文件)
delta-pouch-master
.jshintrc 493B
.circleci
config.yml 620B
.npmignore 63B
examples
profile
index.html 2KB
page
index.html 478B
websites
index.html 637B
main.js 4KB
CONTRIBUTING.md 1KB
test
index.js 13KB
README.md 3KB
cache
.gitignore 14B
beautify.json 102B
dist
pouchdb.delta-pouch.js 196KB
pouchdb.delta-pouch.min.js 84KB
.gitignore 97B
index.js 6KB
package-lock.json 222KB
package.json 3KB
共 18 条
- 1
资源评论
潜水小透明
- 粉丝: 33
- 资源: 4508
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功