function testNumber(){ 
  var yourinputValue=$("#yourinputId").val();
  var reg = /^[1-9]\d*$/;
 alert(reg.test(yourinputValue))

}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-12-15
  • 2022-01-08
猜你喜欢
  • 2021-10-05
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
相关资源
相似解决方案