摘要: 验证电话号码的主要代码如下: public bool IsTelephone(string str_telephone) { return System.Text.RegularExpressions.Regex.IsMatch(str_telephone, @"^(\d{3,4}-)?\d{6,8 阅读全文
posted @ 2017-12-05 14:36 qqhfeng16 阅读(502) 评论(0) 推荐(0) 编辑
摘要: tring id = System.Guid.NewGuid().ToString(); 一句话即可,但此时id中有“-”符号存在,使用下面语句可变为纯字母+数字。 string id = System.Guid.NewGuid().ToString("N"); 阅读全文
posted @ 2017-12-05 08:50 qqhfeng16 阅读(31170) 评论(0) 推荐(0) 编辑