Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-render
意思是,父组件传递给子组件的参数,子组件不能动态的修改此参数
props:{
active:false
},
this.active = true; //这样写就会报错
意思是,父组件传递给子组件的参数,子组件不能动态的修改此参数
props:{
active:false
},
this.active = true; //这样写就会报错
评论
评论列表
暂无评论,快来抢沙发吧~