摘要:
验证电话号码的主要代码如下: public bool IsTelephone(string str_telephone) { return System.Text.RegularExpressions.Regex.IsMatch(str_telephone, @"^(\d{3,4}-)?\d{6,8 阅读全文
posted @ 2014-01-06 14:06 米粒3 阅读(460) 评论(0) 推荐(0)
摘要:
验证电话号码的主要代码如下: public bool IsTelephone(string str_telephone) { return System.Text.RegularExpressions.Regex.IsMatch(str_telephone, @"^(\d{3,4}-)?\d{6,8 阅读全文
posted @ 2014-01-06 14:06 米粒3 阅读(460) 评论(0) 推荐(0)
摘要:
//如果文本中可以为空的为NO,文本中内容不为空 if (input.nullable == "no" || !isnull(input.value)) { //文本中值的类型 switch (input.datatype) { //数字 case "number": //isnumber是否是数字 阅读全文
posted @ 2014-01-06 14:03 米粒3 阅读(1663) 评论(0) 推荐(0) |
||