error code:
wx.showModal({
title: 'prompt',
content: 'OK to add?',
success(res){
if (res.confirm) {
//Add each other as your friend
db.collection('users').doc(app.userInfo._id).update({
data:{
friendList:this.data.messageId
},
}).then((res)=>{});
}else{}
}
})
View Code:
will success spelled it is ok to change
success: (res)=> {
}
Similar Posts:
- TypeError: save() missing 1 required positional argument: ‘self’
- JS Uncaught TypeError: Cannot read property ‘toLowerCase’ of undefined
- [Solved] UserInfo()’ in ‘com.example.gmall.cart.pojo.UserInfo’ cannot be applied to ‘(long, java.lang.String)’
- How to Solve Datatable field value is empty Error
- How to Customizate the Style of Option Box by JQuery Component
- [Solved] TypeError: ‘Collection’ object is not callable. If you meant to call the ‘authenticate’ method on a ‘Database’ object it is failing because no such method exists.
- [Solved] pymongo.errors.OperationFailure: Authentication failed.
- The full calendar obtains the events report uncaught type error: callback is not a function from the background
- [Solved] Error-Javascript: Uncaught Error: Malformed UTF-8 data at Object.stringify (crypto-js.js:478) at W…
- When the core hostbuilder builds the pipeline, the error message “value cannot be null” is displayed