1. 是否是数字判断:
public static bool IsNumber(string strNumber)
{
    Regex regex = new Regex("[^0-9]");
    return !regex.IsMatch(strNumber);
}

相关文章:

  • 2021-07-19
  • 2021-09-25
  • 2022-01-19
  • 2022-12-23
猜你喜欢
  • 2021-05-19
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
相关资源
相似解决方案