<input type="digit" v-model="rechargeMoney" @input="inputChange" />
inputChange(e){
var that = this
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
this.$nextTick(() => {
that.rechargeMoney= e.target.value
})
}
04-28
7357
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)