当被监听的数据发生变化是,函数被执行
created() { this.$watch("Withdrawals", function (newValue, oldValue) { if(this.Withdrawals==false){ console.log("123") } }) }
data(){ return{ Withdrawals:false } }
时间: 2024-09-29 08:27:14
当被监听的数据发生变化是,函数被执行
created() { this.$watch("Withdrawals", function (newValue, oldValue) { if(this.Withdrawals==false){ console.log("123") } }) }
data(){ return{ Withdrawals:false } }