摘要: 1、设置 Cookie 2、获取 Cookie 3、删除 Cookie 阅读全文
posted @ 2016-06-23 19:06 朝闲 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1、 阅读全文
posted @ 2016-05-31 17:21 朝闲 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 签名失败,建议按以下步骤排查 我是在第三步错的。。。默认参数也一定要写上 一定要完全一模一样(不包含#及其后面部分) 还有一个坑 就是 URL链接 一定要连大小写都一模一样(真坑) 阅读全文
posted @ 2016-04-19 15:34 朝闲 阅读(755) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function () { odd = { "background": "none" }; //奇数样式 even = { "background": "#f3f3f3" }; //偶数样式 odd_even(".gys_xq", odd, even); }); 阅读全文
posted @ 2016-03-01 10:49 朝闲 阅读(897) 评论(0) 推荐(0) 编辑
摘要: public static void ErrorLog(string mssg) { string FilePath = "D:/logs/ErrorLog.txt"; try { if (System.IO.File.Exists(FilePath)) { using (StreamWriter 阅读全文
posted @ 2016-02-24 10:32 朝闲 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: /// /// 发起一个HTTP请求(以POST方式) /// /// /// /// public static string HttpPost(string url, string param = ""... 阅读全文
posted @ 2015-11-02 16:45 朝闲 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AMSelect CONVERT(varchar(100), GETDATE(), 1): 05/16/06Select CONVERT(varchar(100), GETDATE... 阅读全文
posted @ 2015-10-22 16:23 朝闲 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1、String数组转换成Int数组 string[] strArr = "a,b,c".Split(','); int[] intArr = Array.ConvertAll<string, int>(strArr, s => int.Parse(s)); 2、datetime 转换字符串 dt. 阅读全文
posted @ 2015-08-31 17:21 朝闲 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 验证0-23 正数 /^(2[0-3]|[0-1]?\d)$/ 阅读全文
posted @ 2015-08-20 17:43 朝闲 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 跳出 iframe 在当前页跳转, window.parent.frames.location.href=www.baidu.com" 跳转页面 阅读全文
posted @ 2015-08-13 14:23 朝闲 阅读(319) 评论(0) 推荐(0) 编辑