您好,
可以设置Table的head隐藏,可以参考以下代码- <script type="text/javascript">
- $(document).ready(function ()
- {
- var spread = new GcSpread.Sheets.Spread($("#ss").get(0), {
- sheetCount: 3
- });
- var activeSheet = spread.getActiveSheet();
- activeSheet.addTable("Table1", 0, 0, 3, 3, GcSpread.Sheets.TableStyles.dark1());
- activeSheet.getCell(0, 0).text("Name");
- activeSheet.getCell(0, 1).text("Value");
- activeSheet.getCell(0, 2).text("T/F");
- activeSheet.getCell(1, 0).text("AW");
- activeSheet.getCell(1, 1).text("5");
- activeSheet.getCell(1, 2).text("T");
- var tables = activeSheet.getTables();
- tables[0].showHeader(false);;
- });
- </script>
复制代码 |