博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年1月6日

摘要: 验证电话号码的主要代码如下: 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 阅读(442) 评论(0) 推荐(0) 编辑

摘要: //如果文本中可以为空的为NO,文本中内容不为空 if (input.nullable == "no" || !isnull(input.value)) { //文本中值的类型 switch (input.datatype) { //数字 case "number": //isnumber是否是数字 阅读全文

posted @ 2014-01-06 14:03 米粒3 阅读(1649) 评论(0) 推荐(0) 编辑