摘要: replace(/\-/g, "\/")是根据验证表达式把日期转化成长日期格式 1 function checkStartTimeAndEndTime(startTime, endTime) { 2 var sTime = new Date(startTime.replace("/\-/g"... 阅读全文
posted @ 2014-06-06 14:42 李亚杰 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 1 public String GetCheckString(Bitmap bitmap) { 2 UnCodebase ud = new UnCodebase(bitmap); 3 ud.GrayByPixels(); 4 ud.... 阅读全文
posted @ 2014-04-24 20:48 李亚杰 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 bool b = false; 2 for (int i = 1; i < 101; i++) 3 { 4 for (int j = 2; j < i; j++) 5 { 6 ... 阅读全文
posted @ 2014-04-23 00:19 李亚杰 阅读(620) 评论(0) 推荐(0) 编辑
摘要: 竖表转横表竖表结构:NameCourseGrade张三语文75张三数学80张三英语90李四语文95李四数学55转换后横表结构:Name语文数学英语张三758090李四95550SQL语句:1 select Name,2 sum(case Course when '语文' then Grade els... 阅读全文
posted @ 2014-04-19 16:46 李亚杰 阅读(1373) 评论(0) 推荐(0) 编辑
摘要: int a = 2,b = 3;public void ChangeNum(){ a = a ^ b; b = a ^ b; //a ^ b ^ b = a,b ^ a ^ a = b a = a ^ b;} 阅读全文
posted @ 2014-04-19 13:53 李亚杰 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 简单的单例: 1 public class Student 2 { 3 //1。私有静态变量 4 private static Student stu = null; 5 6 //2。私有化构造函数 7 private Stu... 阅读全文
posted @ 2014-04-19 13:31 李亚杰 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1 #region 使用递归查询某路径中的文件结构 2 3 4 public static void CheckFilePath() 5 { 6 ReadFilePath(@"E:\Test",0); 7 ... 阅读全文
posted @ 2014-04-18 19:00 李亚杰 阅读(879) 评论(0) 推荐(0) 编辑
摘要: 回顾复习: 1 static void Main(string[] args) 2 { 3 int[] arr = { 2, 3, 1, 5,8, 4 }; 4 5 for (int i = 0; i arr[j+1])10 ... 阅读全文
posted @ 2014-04-18 16:03 李亚杰 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 当一个HTTP请求到服务器并被IIS接收到之后,IIS首先通过客户端请求的页面类型为其加载相应的.dll文件,然后在处理过程中将这条请求发送给能够处理这个请求的模块。在ASP.NET 3.5中,这个模块叫做HttpHandler(HTTP处理程序组件),之所以.aspx文件可以被服务器处理,就是因为... 阅读全文
posted @ 2014-04-18 15:47 李亚杰 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 主要类:System.Web.HttpRuntimeSystem.Web.HttpApplicationFactorySystem.Web.HttpApplicationSystem.Web.Compilation.BuildManagerSystem.Web.Compilation.Applica... 阅读全文
posted @ 2014-04-18 15:35 李亚杰 阅读(172) 评论(0) 推荐(0) 编辑