原创 判斷是否爲數字的方法

if(!string.IsNullOrEmpty(a)){ decimal isNum = 0m; try{ isNum = deciaml.parse(a); } catch(E