@input = 'inputValue'
limitInput(inputValue) {
this.formData.xxx = inputValue.replace(/[^0-9]/g, '')
this.formData.yyy = inputValue.replace(/[^0-9]/g, '')
},
elementui / input框只能输入正整数
最新推荐文章于 2024-02-25 15:35:53 发布
@input = 'inputValue'
limitInput(inputValue) {
this.formData.xxx = inputValue.replace(/[^0-9]/g, '')
this.formData.yyy = inputValue.replace(/[^0-9]/g, '')
},