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
getTextAreaContent: function (event) { that.data.content = event.detail.value; },
saveToCollectServer: function (event) { db.collection('collect').add({ // data 字段表示需新增的 JSON 数据 data: { _id: that.data.id, date: new Date(), user: that.data.user, content: that.data.content , }, success:res=> { that.refreshLikeIcon(true) this.setData({ content: event.detail.value })
}, })
},
The text was updated successfully, but these errors were encountered:
看一下 that.data.content 是不是空的吧,还有检查 getTextAreaContent 方法是不是在 wxml 中定义的方法
Sorry, something went wrong.
close
No branches or pull requests
getTextAreaContent: function (event) {
that.data.content = event.detail.value;
},
saveToCollectServer: function (event) {
db.collection('collect').add({
// data 字段表示需新增的 JSON 数据
data: {
_id: that.data.id,
date: new Date(),
user: that.data.user,
content: that.data.content ,
},
success:res=> {
that.refreshLikeIcon(true)
this.setData({
content: event.detail.value
})
},
The text was updated successfully, but these errors were encountered: