当前位置:网站首页>Jspreadsheet/ce JExcel: more data fields than the given fields (columns) will lead to blank columns. Solution
Jspreadsheet/ce JExcel: more data fields than the given fields (columns) will lead to blank columns. Solution
2022-06-30 16:53:00 【Lizhangde】
JExcel The data field is bigger than the given field (columns) Too many columns will cause the problem of blank columns
After a long debugging , Summarize the results of the solution
stay jexcel.js Of documents 370 That's ok , It can be solved by annotating it as follows
as a result of Object.keys(obj.options.data[0]).length Will get the data key The number of , And in for Add in loop obj.options.columns The action of , This will result in blank columns ( Field ) Appearance
/* // This code will read the data key, And return the number , Then it loops and adds to obj.options.columns
if (obj.options.data && typeof(obj.options.data[0]) !== 'undefined') {
// Data keys
var keys = Object.keys(obj.options.data[0]);
if (keys.length > size) {
size = keys.length;
}
}*/
// More columns will be added below , So comment out the above code to keep the data consistent with the field
// Preparations
for (var i = 0; i < size; i++) {}边栏推荐
- 7 月 2 日邀你来TD Hero 线上发布会
- 【微信小程序】常用组件基本使用(view/scroll-view/swiper、text/rich-text、button/image)
- TCP socket and TCP connection
- 利用PIL进行不失真的resize
- 2022蓝桥杯国赛B组-2022-(01背包求方案数)
- Cmakelists Basics
- MC Instruction Decoder
- Rong Lianyun launched rphone based on Tongxin UOS to create a new ecology of localization contact center
- Hologres shared cluster helps Taobao subscribe to the extreme refined operation
- 药品管理系统加数据库,一夜做完,加报告
猜你喜欢

9:第三章:电商工程分析:4:【通用模块】;(待写……)

RT thread heap size setting

Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API

牛客网:乘积为正数的最长连续子数组

容联云首发基于统信UOS的Rphone,打造国产化联络中心新生态

观测云与 TDengine 达成深度合作,优化企业上云体验

Etcd教程 — 第九章 Etcd之实现分布式锁

Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today

猎头5万挖我去VC

异常类_日志框架
随机推荐
2022 Blue Bridge Cup group B -2022- (01 backpack to calculate the number of schemes)
POJ Project Summer
restartProcessIfVisible的流程
7 月 2 日邀你来TD Hero 线上发布会
IO stream_ recursion
24:第三章:开发通行证服务:7:自定义异常(来表征程序中出现的错误);创建GraceExceptionHandler来全局统一处理异常(根据异常信息,构建对应的API统一返回对象的,JSON数据);
POJ Project Summer
更多龙蜥自研特性!生产可用的 Anolis OS 8.6 正式发布
Simpleitk encountered an ITK only supports orthonormal direction cosines error while reading NII
Etcd教程 — 第九章 Etcd之实现分布式锁
2022蓝桥杯国赛B组-费用报销-(线性dp|状态dp)
ArcMap operation series: 80 plane to latitude and longitude 84
Talk about telecommuting | community essay solicitation
HMS Core音频编辑服务3D音频技术,助力打造沉浸式听觉盛宴
RTP 发送PS流零拷贝方案
Hologres共享集群助力淘宝订阅极致精细化运营
[bjdctf2020]the mystery of ip|[ciscn2019 southeast China division]web11|ssti injection
2022 Blue Bridge Cup group B - expense reimbursement - (linear dp| status DP)
15年做糊21款硬件,谷歌到底栽在哪儿?
【Verilog基础】关于Clock信号的一些概念总结(clock setup/hold、clock tree、clock skew、clock latency、clock transition..)