for example, the following code:
< input type= "text" v muri model = "sellPrice" >
< input type= "text" v muri model = "buyVolume" >
reg:/ ^ [0-9] + (. [0-9] {1 Magazine 8})? $/
reg1:/ [0-9] dudes /
watch: {
buyPrice:function(){
},
sellPrice:function(){
let a = this.sellPrice;
this.sellPrice = a.match(this.reg,"");
},
buyVolume:function(){
this.buyVolume = this.buyVolume.match(/[0-9]\d*/,"");
},
sellVolume:function(){
this.sellVolume = this.sellVolume.match(/[0-9]\d*/,"");
}
}
Price could not succeed.
Why does sellVolume succeed but report this.sellVolume.match is not a function