/** *! Copyright (c) 2011 lxh13@126.com (QQ:1208376545) * * Version 1.0.0 * * 采用jQueryui css作为grid的主题(http://jqueryui.com/themeroller/) * 兼容主流浏览器:IE6+ ,firefox,chrome * 主要功能:支持冻结列 * 支持复合表头 * 支持点击表头排序 * 支持列宽调整 * 支持纯前端数据 * 支持单元格显示自定义 * 支持数据源自定义扩展 * */ (function($){ function createTemplate(target,options){ var html = [] ; html.push('
'); } target.append(html.join("")); } function createHead(target,options){ var width = 0 ; createHeadRow() ; if(options.forzenColumn.length>0){ createHeadRow("lly-grid-1-head") ; createHeadCell(options.forzenColumn,"lly-grid-1-head") ; } createHeadRow("lly-grid-2-head") ; createHeadCell(options.bodyColumn,"lly-grid-2-head") ; width = width + (options.bodyColumn.length) ; $(".lly-grid-2-head table",target).width( width ) $(".lly-grid-2-body > table",target).width( width ) ; setTimeout(function(){ adjustWidth(target) ; },0) ; function createHeadRow(container){ $("