<el-form-item label="收货手机">
  <el-input
   onkeyup="value=value.replace(/[^\d]/g,'')" // 绑定只能输入数字
   @blur="formInline.phone.value = $event.target.value"  // 重新绑定数值
    v-model="formInline.phone.value"
    placeholder="请输入手机号码"
   ></el-input>
</el-form-item>

oninput="value=value.replace(/[^\d^\.]/g,'')" // 只能输入小数点数字

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-10
相关资源
相似解决方案