# jexcel **Repository Path**: tanran6/jexcel ## Basic Information - **Project Name**: jexcel - **Description**: jexcel的demo - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # jexcel #### 介绍 jexcel的demo #### 软件架构 使用了jexcel的1.2.1版本,这个版本兼容IE8浏览器,并且修改了部分的js源码,供学习参考 #### 调用示例 1.2.1版本 1.5.1版本 2.10 版本 获取单元格的宽度,getWidth是方法名,0是参数。 $('#mytable').jexcel('getWidth',0); 3.0以上版本 var table =jexcel(document.getElementById('spreadsheet'), { data:data, columns: [ { type: 'text', title:'Car', width:120 }, { type: 'dropdown', title:'Make', width:200, source:[ "Alfa Romeo", "Audi", "Bmw" ] }, { type: 'calendar', title:'Available', width:200 }, { type: 'image', title:'Photo', width:120 }, { type: 'checkbox', title:'Stock', width:80 }, { type: 'numeric', title:'Price', width:100, mask:'$ #.##,00', decimal:',' }, { type: 'color', width:100, render:'square', } ] }); table.getWidth(0);