写写程序,一种成就的感觉

写写程序,一种成就的感觉

导航

1 2 3 4 5 ··· 13 下一页

2015年3月10日

摘要: http://tengine.taobao.org/ 阅读全文

posted @ 2015-03-10 10:40 hateyoucode 阅读(240) 评论(0) 推荐(0) 编辑

2015年3月4日

摘要: MYSQL中的UNIONUNION在进行表链接后会筛选掉重复的记录,所以在表链接后会对所产生的结果集进行排序运算,删除重复的记录再返回结果。举例说明:select*fromtable1 unionselect*fromtable2这个SQL在运行时先取出两个表的结果,再用排序空间进行排序删除重复的记... 阅读全文

posted @ 2015-03-04 10:04 hateyoucode 阅读(344) 评论(0) 推荐(0) 编辑

摘要: 下面是例子分析表A记录如下:aIDaNum1a200501112a200501123a200501134a200501145a20050115表B记录如下:bIDbName1200603240122006032402320060324034200603240482006032408创建这两个表SQL... 阅读全文

posted @ 2015-03-04 09:51 hateyoucode 阅读(189) 评论(0) 推荐(0) 编辑

2013年4月1日

摘要: if(!$("input[name=agree]").attr('checked')) { alert("请勾选同意用户服务条款!"); return false; } 阅读全文

posted @ 2013-04-01 12:04 hateyoucode 阅读(312) 评论(0) 推荐(1) 编辑

2013年3月23日

摘要: bit类型,只存储true和false,可接受null值。插入数据时,可以插入true,false,0,1,除此之外的数字、字符等将存储为true。取数据时,得到的数据是0和1,而不是true或false。 阅读全文

posted @ 2013-03-23 11:57 hateyoucode 阅读(1244) 评论(0) 推荐(0) 编辑

2013年1月28日

摘要: if(document.forms['pinglunform'].elements['strmemo'].value == false) { alert("评论内容不能为空!"); return false; } 阅读全文

posted @ 2013-01-28 15:37 hateyoucode 阅读(528) 评论(0) 推荐(0) 编辑

2011年8月20日

摘要: string[] jihelist = Info.JiHeXinXi.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries); 阅读全文

posted @ 2011-08-20 13:57 hateyoucode 阅读(3739) 评论(0) 推荐(0) 编辑

2011年3月16日

摘要: 在asp中我们可以用datediff来处理,时间的差,相当的不错,可是在asp.net中C#语言中却没有。可是ASP.net给我们提供了一个TimeSpan,我们可以用它来取。如果二个时间是2007-1-24 11:29:12,2007-1-24 10:29:12DateTime dt1 = Convert.ToDateTime("2007-1-24 11:29:12"); DateTime dt2 = Convert.ToDateTime("2007-1-24 10:29:12");TimeSpan ts = dt1-dt2;这时,我如果采用ts.Mi 阅读全文

posted @ 2011-03-16 10:26 hateyoucode 阅读(248) 评论(0) 推荐(0) 编辑

2011年2月11日

摘要: // This program illustrates various ways to // create and manipulate array types. //// Comment / uncomment method calls in Main()// to test.using System;using System.Collections.Generic;using System.Text;namespace FunWithArrays{class Program{ static void Main(string[] args) { Console.WriteLine(" 阅读全文

posted @ 2011-02-11 17:20 hateyoucode 阅读(3482) 评论(0) 推荐(1) 编辑

2010年12月28日

摘要: 方法参数上的 out 方法参数关键字使方法引用传递到方法的同一个变量。当控制传递回调用方法时,在方法中对参数所做的任何更改都将反映在该变量中。 当希望方法返回多个值时,声明 out 方法非常有用。使用 out 参数的方法仍然可以返回一个值。一个方法可以有一个以上的 out 参数。 若要使用 out 参数,必须将参数作为 out 参数显式传递到方法。out 参数的值不会传递到 out 参数。 不必初始化作为 out 参数传递的变量。然而,必须在方法返回之前为 out 参数赋值。 属性不是变量,不能作为 out 参数传递。 方法参数上的 ref 方法参数关键字使方法引用传递到方法的同一个变量。当控 阅读全文

posted @ 2010-12-28 11:56 hateyoucode 阅读(300) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 13 下一页