摘要: 1 public static bool IsTelephone(string strTelephone) 2 { 3 return Regex.IsMatch(strTelephone, "^1\\d{10}$"); 4 } 一、正则表达式(regular expression简称res) 1、定 阅读全文
posted @ 2016-03-30 10:45 落叶的瞬间; 阅读(264) 评论(0) 推荐(0) 编辑
摘要: WebAPI 只使用JSON格式响应 使用方式http://localhost:8081/api/home?$format=jsonhttp://localhost:8081/api/home?$format=xml 参考资料:https://code.msdn.microsoft.com/Supp 阅读全文
posted @ 2016-03-30 10:28 落叶的瞬间; 阅读(464) 评论(0) 推荐(0) 编辑