博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 26 下一页

2012年3月26日

摘要: /*把逗号分隔的字符串拆成临时表*/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 快乐家++ 阅读(278) 评论(0) 推荐(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 快乐家++ 阅读(1717) 评论(0) 推荐(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 快乐家++ 阅读(3331) 评论(0) 推荐(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 快乐家++ 阅读(1341) 评论(0) 推荐(0)

2011年11月5日

摘要: //-----------------------------------------------------------------------------////算法:排列组合类//////调用方法如下:////1.GetPermutation(T[],startIndex,endIndex)/... 阅读全文

posted @ 2011-11-05 08:38 快乐家++ 阅读(365) 评论(0) 推荐(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 快乐家++ 阅读(1161) 评论(0) 推荐(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 快乐家++ 阅读(752) 评论(0) 推荐(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 快乐家++ 阅读(10491) 评论(1) 推荐(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 快乐家++ 阅读(944) 评论(0) 推荐(0)

摘要: 在FlexiGrid.js的=============================================addRowProp:function(){$('tbodytr',g.bDiv).each(function(){$(this)==============================================后面增加===============================================.dblclick(function(e){varrowData=newObject();$.each($(this).find('d 阅读全文

posted @ 2011-10-31 19:21 快乐家++ 阅读(848) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 26 下一页