当前位置:网站首页>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++) {}边栏推荐
- Asp. NETCORE uses cache and AOP to prevent repeated commit
- 中国传奇教授李泽湘,正在批量制造独角兽
- Halcon knowledge: matrix topic [02]
- Bidding announcement: Tianjin housing provident fund management center database all-in-one machine and database software project (budget: 6.45 million)
- Mathematical modeling for war preparation 34-bp neural network prediction 2
- TCP socket and TCP connection
- [BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入
- MicroBlaze serial port learning · 2
- Multi terminal collaboration of Huawei accounts to create a better internet life
- 附加:(还没写,别看~~~)WebMvcConfigurer接口;
猜你喜欢

restartProcessIfVisible的流程

Hologres shared cluster helps Taobao subscribe to the extreme refined operation
![[Verilog basics] summary of some concepts about clock signals (clock setup/hold, clock tree, clock skew, clock latency, clock transition..)](/img/54/fd7541dae4aad7e4216bcaabbb146b.png)
[Verilog basics] summary of some concepts about clock signals (clock setup/hold, clock tree, clock skew, clock latency, clock transition..)

Raft介绍

华为帐号多端协同,打造美好互联生活

RT-Thread 堆區大小設置

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

Etcd tutorial - Chapter 9 etcd implementation of distributed locks

TCP Socket与TCP 连接

Tencent two sides: @bean and @component are used on the same class. What happens?
随机推荐
Rong Lianyun launched rphone based on Tongxin UOS to create a new ecology of localization contact center
Additional: (not written yet, don't look at ~ ~ ~) webmvcconfigurer interface;
Exception class_ Log frame
猎头5万挖我去VC
中航无人机科创板上市:市值385亿 拳头产品是翼龙无人机
ArcMap operation series: 80 plane to latitude and longitude 84
Cmakelists Basics
[Verilog basics] summary of some concepts about clock signals (clock setup/hold, clock tree, clock skew, clock latency, clock transition..)
Etcd教程 — 第八章 Etcd之Compact、Watch和Lease API
HMS Core音频编辑服务3D音频技术,助力打造沉浸式听觉盛宴
Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column
牛客网:乘积为正数的最长连续子数组
Yunhe enmo won the bid for Oracle maintenance project of Tianjin Binhai rural commercial bank in 2022-2023
赛芯电子冲刺科创板:拟募资6.2亿 实控人谭健为美国籍
GaussDB创新特性解读:Partial Result Cache,通过缓存中间结果对算子进行加速
Delete duplicates in an ordered array ii[double pointers -- unified in multiple cases]
The new tea drinks are "dead and alive", but the suppliers are "full of pots and bowls"?
异常类_日志框架
八大基本排序(详解)
CGR 21 (D,E,F)