if(!string.IsNullOrEmpty(a)){
decimal isNum = 0m;
try{
isNum = deciaml.parse(a);
}
catch(Exception ex){
throw new Exception("不是数字!");
}
}
判断是否为数字的方法
猜你喜欢
转载自blog.csdn.net/Dear_BigTiger/article/details/81032640
今日推荐
周排行