if (isNaN(parseInt(x))) {

alert("非数字");

else{

alert("数字");

}

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2022-01-24
  • 2021-11-17
  • 2021-12-04
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案