^[1-9][0-9]{0,5}$

在线正则表达式测试

input失去焦点事件
onBlur(item){
if (item.applyQuantity && !/^[1-9][0-9]{0,5}$/.test(item.applyQuantity)) {
item.applyQuantity = ''
this.$Message.warning('请填写大于0的整数!')
}
},

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案