posts - 154, comments - 143, trackbacks - 0, articles - 16
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

公告

置顶随笔

摘要: 1//JScriptsourcecode2//整数3"int":"^([+-]?)\\d+$",45//正整数6"int+":"^([+]?)\\d+$",78//负整数9"int-":"^-\\d+$",1011//数字12"num":"^([+-]?)\\d*\\.?\\d+$",1314//正数15"num+":"^([+]?)\\d*\\.?\\d+$"1617//负数18"num-":"...阅读全文

posted @ 2005-08-23 17:21 快乐家++ 阅读(1528) 评论(3) 编辑

2012年3月26日

摘要: 前言 有了Linq to Object之後,一切篩選的動作都變得相當平易近人,甚至上了癮,面對不必要的for loop總是會皺起眉頭。 今天這篇文章,則是針對當需要串起CheckBoxList的選取項目值時,怎麼樣用Linq來取代for loop。 需求CheckBoxList中,若Item被選取,則把值用逗號串起來。 之前沒有Linq的寫法 /// <summary> /// 使用foreach,判斷item是否selected, 將值加入List後,再轉成string array,使用string.join,透過string.join將值串起來 /// </summar.阅读全文

posted @ 2012-03-26 21:39 快乐家++ 阅读(30) 评论(0) 编辑

摘要: /*把逗号分隔的字符串拆成临时表*/ALTERfunctionfn_SplitToTable(@strnvarchar(4000),@splitvarchar(10))returns@tTable(c1varchar(100))asbegindeclare@iintdeclare@sintset@i=1set@s=1while(@i>0)beginset@i=charindex(@split,@str,@s)if(@i>0)begininsert@t(c1)values(substring(@str,@s,@i-@s))endelsebegininsert@t(c1)values(阅读全文

posted @ 2012-03-26 12:00 快乐家++ 阅读(11) 评论(0) 编辑

2012年2月28日

摘要: <title>jquery表格修饰:隔行换色,点击变色,多选单选变色</title><scriptlanguage=javascriptsrc="http://code.jquery.com/jquery-1.4.2.min.js"></script><style>.dataTable{border-top:1pxsolid#009286;border-right:1pxsolid#009286;border-bottom:1pxsolid#009286;}.dataTabletheadtr{background:阅读全文

posted @ 2012-02-28 20:31 快乐家++ 阅读(45) 评论(0) 编辑

2012年2月25日

摘要: <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"lang="en"><head><title>jQuery实现点击复选框即高亮显示选中行全选、反选</title><sty阅读全文

posted @ 2012-02-25 19:27 快乐家++ 阅读(96) 评论(0) 编辑

摘要: 前台:<table class="li1" cellspacing="1" cellpadding="2" border="0" style="width: 100%;" id="sort" oncontextmenu="return false; " onpaste=" return false;"> <thead> <tr> <td style="width: 3%; paddin阅读全文

posted @ 2012-02-25 16:01 快乐家++ 阅读(30) 评论(0) 编辑

2011年11月5日

摘要: //-----------------------------------------------------------------------------////算法:排列组合类//////调用方法如下:////1.GetPermutation(T[],startIndex,endIndex)//对startIndex到endIndex进行排列,其余元素不变////2.GetPermutation(T[])//返回数组所有元素的全排列////3.GetPermutation(T[],n)//返回数组中n个元素的排列////4.GetCombination(T[],n)//返回数组中n个元素阅读全文

posted @ 2011-11-05 08:38 快乐家++ 阅读(55) 评论(0) 编辑

2011年11月4日

摘要: <html><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"><title>固定表头和列</title><style>.FixedTitleRow{position:relative;top:expression(this.offsetParent.scrollTop);z-index:10;background-color:#E6ECF0;}.FixedTitleColumn{positio阅读全文

posted @ 2011-11-04 12:48 快乐家++ 阅读(71) 评论(0) 编辑

2011年10月31日

摘要: <tableid="flex1"style="display:none"></table><inputid="hidden"type="hidden"name="hidden"value="null"/><script>$("#flex1").flexigrid({url:'../ReleaseInfoServlet?hidden=manage',dataType:'json'阅读全文

posted @ 2011-10-31 20:27 快乐家++ 阅读(129) 评论(0) 编辑

摘要: 1、flexigrid参数说明:height:200,//flexigrid插件的高度,单位为pxwidth:'auto',//宽度值,auto表示根据每列的宽度自动计算,在IE6下建议设置具体值否则会有问题striped:true,//是否显示斑纹效果,默认是奇偶交互的形式novstripe:false,//没用过这个属性minwidth:30,//列的最小宽度minheight:80,//列的最小高度resizable:false,//resizabletable是否可伸缩url:false,//ajaxurl,ajax方式对应的url地址method:'POST&阅读全文

posted @ 2011-10-31 19:27 快乐家++ 阅读(372) 评论(0) 编辑

摘要: Flexigrid是一款很漂亮的Jquery的表格插件,具体的信息大家可以上网上查一查。由于公司要用,所以研究了好半天这个东西,由于官方并没有提供给完整的文档,所以研究起来很痛苦~~~公司要求做到客户端界面上的增删查改,所以第一步就是如何获取到Flexigrid的数据集,只有获取到了数据集,才能对数据集进行操作。琢磨了源码好久,终于琢磨出来怎么做了。首先我们要改源码,打开从官网上下载的flexigrid.js文件,定位到615行(有可能会不同),有如下的代码:$.ajax({type:p.method,url:p.url,data:param,dataType:p.dataType,succe阅读全文

posted @ 2011-10-31 19:22 快乐家++ 阅读(108) 评论(0) 编辑