阅读背景:

bug解决出来那一刻也太爽了,一定要急着用watch

来源:互联网 
watch: { //tel 是data() 里面的数据tel,newVal是tel变化后的值,oldVal是tel变化前的值 tel(newVal,oldVal){ console.log(newVal,oldVal) if(newVal != ""){ this.isDisabled = false }else{ this.isDisabled = true } } }, watch: { //tel 是data() 里面的数据tel,newVal是tel变化后的值,o



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: