vue watch用法和没反应的原因 =>看看下面是不是还有一个watch
watch: {stop: function(newVal, old){//非josn用法 console.log(newVal) },'form.fdnDct': function(newVal, old){//josn用法 console.log(newVal) },...
·
watch: {
stop: function(newVal, old){ //非josn用法
console.log(newVal)
},
'form.fdnDct': function(newVal, old){ //josn用法
console.log(newVal)
},
}
//这也是一种用法
watch: {
'browse_integral_info.buy':'RMB', //购买积分转化成人民币
'browse_integral_info.give':'GIVE', //完成邀请浏览任务赠送
'bargain_integral_info.give':'BARGAINGIVE',
deep:true,
},
methods: {
RMB: function(){
this.RMBs = this.browse_integral_info.buy/100
},
},
stop: function(newVal, old){ //非josn用法
console.log(newVal)
},
'form.fdnDct': function(newVal, old){ //josn用法
console.log(newVal)
},
}
//这也是一种用法
watch: {
'browse_integral_info.buy':'RMB', //购买积分转化成人民币
'browse_integral_info.give':'GIVE', //完成邀请浏览任务赠送
'bargain_integral_info.give':'BARGAINGIVE',
deep:true,
},
methods: {
RMB: function(){
this.RMBs = this.browse_integral_info.buy/100
},
},
更多推荐
已为社区贡献13条内容
所有评论(0)