Fork me on GitHub
摘要: using System.Diagnostics; //引入命名空间string str = this.textBox1.Text.Trim().ToString();//只能输入正整数 bool isNumber = System.Text.RegularExpressions.Regex.IsMatch(str, @"^[1-9]\d*$"); //正则表达... 阅读全文
posted @ 2018-09-24 18:10 都一样* 阅读(359) 评论(0) 推荐(0) 编辑