当被监听的数据发生变化是,函数被执行
created() { this.$watch("Withdrawals", function (newValue, oldValue) { if(this.Withdrawals==false){ console.log("123") } }) }
data(){ return{ Withdrawals:false } }
标签:== draw log 执行 his $watch raw ret ons
created() { this.$watch("Withdrawals", function (newValue, oldValue) { if(this.Withdrawals==false){ console.log("123") } }) }
data(){ return{ Withdrawals:false } }
标签:== draw log 执行 his $watch raw ret ons
原文地址:http://www.cnblogs.com/learnoffs/p/8023674.html