<el-input :maxlength="10" oninput="this.value = this.value.replace(/[^0-9]/g, '');"/>
el-input限制只能输入数字及长度
最新推荐文章于 2024-07-05 11:07:48 发布
<el-input :maxlength="10" oninput="this.value = this.value.replace(/[^0-9]/g, '');"/>