摘要: db.collection('todos').doc('todo-identifiant-aleatoire').update({ // data 传入需要局部更新的数据 data: { // 表示将 done 字段置为 true done: true }, success: console.log 阅读全文
posted @ 2018-09-14 16:09 ThisCall 阅读(988) 评论(0) 推荐(0) 编辑
摘要: db.collection('cheshi').add({ data: { cheshi:4, } }).then((res) => { console.log(res) }) 阅读全文
posted @ 2018-09-14 16:04 ThisCall 阅读(2469) 评论(0) 推荐(0) 编辑