亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

更新操作有問題

updata: function() {

??? db.collection('user').doc("1acf1de95e17027d002234c36049da1c").updata({

????? data: {

??????? age: 21

????? }

??? }).then(res => {

????? console.log(res);

??? }).catch(err => {

????? console.log(err);

??? })

? },

VM4123:1 thirdScriptError
db.collection(...).doc(...).updata is not a function; [Component] Event Handler Error @ pages/cloud/cloud#bound updata
TypeError: db.collection(...).doc(...).updata is not a function
??? at ye.updata (http://127.0.0.1:44659/appservice/pages/cloud/cloud.js:25:67)
??? at Object.r.safeCallback (WAService.js:1:1125173)
??? at WAService.js:1:1317978
??? at r (WAService.js:1:1249680)
??? at WAService.js:1:1249802
??? at WAService.js:1:420977
??? at n (http://127.0.0.1:44659/appservice/__dev__/asdebug.js:1:28029)
??? at e.exports.<anonymous> (http://127.0.0.1:44659/appservice/__dev__/asdebug.js:1:28398)
??? at http://127.0.0.1:44659/appservice/__dev__/asdebug.js:1:1968
??? at Array.forEach (<anonymous>)

正在回答

1 回答

應該是update,不是updata,拼寫錯誤

http://img1.sycdn.imooc.com//5e17d77100013ab417821094.jpg

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

更新操作有問題

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號