摘要:
//身份证验证 validCardId: function (sId) { var aCity = { 11: "北京", 12: "天津", 13: "河北", 14: "山西", 15: "内蒙古", 21: "辽宁", 22: "吉林", 23: "黑龙江", 31: "上海", 32: "江 阅读全文
摘要:
1 DECLARE @r numeric(15,8) 2 DECLARE @tempStr char(10) 3 select @r=RAND((DATEPART(mm,GETDATE())*100000)+(DATEPART(ss,GETDATE())*1000)+DATEPART(ms,GETDATE())+cast( floor(rand()*10... 阅读全文
摘要:
private static string HttpClientRequest(string uri, List> paramList) { HttpClient httpClient = new HttpClient(); httpClient.MaxResponseContentBufferSize = 256000; ... 阅读全文
摘要:
1 public class ValidateCode 2 { 3 /// 4 /// 生成验证码 5 /// 6 /// 指定验证码的长度 7 /// 8 public string CreateValidateCode(int length) 9 ... 阅读全文
摘要:
1 (function ($) { 2 $.fn.pager = function (options) { 3 var opts = $.extend({}, $.fn.pager.defaults, options); 4 return this.each(function () { 5 $(th 阅读全文
摘要:
1 /// 2 /// 替换*号 3 /// 4 /// 字符串 5 /// 前几位字符不替换 6 /// 后几位字符不提货 7 /// 需要替换的字符 8 /// 9 public static string ReplaceWithSpeci... 阅读全文
摘要:
SELECT (case when a.colorder=1 then d.name else null end) 表名, a.colorder 字段序号,a.name 字段名, (case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end) 标识, (case when (SELECT count(... 阅读全文
摘要:
Dapper文件下载 http://files.cnblogs.com/files/huweizhong/Dapper.zip 阅读全文
摘要:
整理下平时用到的正则表达式,待日后方便使用: 整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数字:"^\d{n,}$"。只能输入m~n位的数字:。"^\d{m,n}$"只能输入零和非零开头 阅读全文