我有一个架构,下面是一个变量:
var node = ReactDOM.findDOMNode(this.refs.el);
node.classList.toggle('menu-open');
变量receiveComments:[{
whoComment:{
type:ObjectId,
ref:'Student'
},
whichHelp:{
type:ObjectId,
ref:"Help"
},
whichComment:{
type:ObjectId,
ref:"Comment"
}
}],
中的一个是关于whichComment
模式的相对,Comment
模式有一个如下变量:
Comment
当我通过修改have_saw: {
type:Boolean,
default:false
},
人口将have_saw
更改为true时,之后我保存了。
但是当我得到whichComment
值时,它仍然是假的,因此它表示我没有成功更改have_saw
值。
那么,发生了什么?
have_saw