12 2016 档案

摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common { public class DateUtils { /// /// 时间转换为... 阅读全文
posted @ 2016-12-29 15:14 码到世界末日 阅读(369) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace Common { public class HttpUtils ... 阅读全文
posted @ 2016-12-29 15:14 码到世界末日 阅读(317) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Configuration; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Common { public class L... 阅读全文
posted @ 2016-12-29 15:12 码到世界末日 阅读(229) 评论(0) 推荐(0)
摘要:一、校验数字的表达式 1 数字:^[0-9]*$ 2 n位的数字:^\d{n}$ 3 至少n位的数字:^\d{n,}$ 4 m-n位的数字:^\d{m,n}$ 5 零和非零开头的数字:^(0|[1-9][0-9]*)$ 6 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[0-9]{1,2})?$ 7 带1-2位小数的正数或负数:^(\-)?\d+(\.\d{1,... 阅读全文
posted @ 2016-12-19 16:17 码到世界末日 阅读(149) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Web; using System.Web.Mvc; namespace XG.Web.Controllers { /// /// 验证码获取 /// pu... 阅读全文
posted @ 2016-12-09 16:40 码到世界末日 阅读(528) 评论(0) 推荐(0)
摘要:方法一、 方法二、 后台: 前台: 阅读全文
posted @ 2016-12-09 15:04 码到世界末日 阅读(1242) 评论(0) 推荐(2)
摘要:using System.IO; using System.Runtime.Serialization.Json; using System.Text; namespace WebTest.Controllers { public class JsonConvert { /// /// 将对象转换为json /// ... 阅读全文
posted @ 2016-12-09 14:56 码到世界末日 阅读(144) 评论(0) 推荐(0)
摘要:下载链接: http://pan.baidu.com/s/1qYVOD7Q 阅读全文
posted @ 2016-12-09 10:36 码到世界末日 阅读(157) 评论(0) 推荐(0)