当前位置:网站首页>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++) {}边栏推荐
- Mathematical modeling for war preparation 35 time series prediction model
- Bc1.2 PD protocol
- Etcd tutorial - Chapter 9 etcd implementation of distributed locks
- The image variables in the Halcon variable window are not displayed, and it is useless to restart the software and the computer
- halcon知识:区域专题【07】
- 备战数学建模33-灰色预测模型2
- 新茶饮“死去活来”,供应商却“盆满钵满”?
- 赛芯电子冲刺科创板:拟募资6.2亿 实控人谭健为美国籍
- simpleITK读取nii遇到ITK only supports orthonormal direction cosines的错误
- 快照和备份
猜你喜欢

【Verilog基础】关于Clock信号的一些概念总结(clock setup/hold、clock tree、clock skew、clock latency、clock transition..)

Home office discussion on the experience of remote assistance to quickly improve efficiency | community essay solicitation

Mathematical modeling for war preparation 34-bp neural network prediction 2

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

HMS Core音频编辑服务3D音频技术,助力打造沉浸式听觉盛宴

More dragon lizard self-developed features! Production available Anolis OS 8.6 officially released
![Delete duplicates in an ordered array ii[double pointers -- unified in multiple cases]](/img/e2/cadfdbe476a86cb2d72c1ae0160a4a.png)
Delete duplicates in an ordered array ii[double pointers -- unified in multiple cases]

JS ES5也可以创建常量?
![[Verilog quick start of Niuke online question series] ~ bit splitting and operation](/img/17/4b8f5607c4cba1596435233a6cf30a.png)
[Verilog quick start of Niuke online question series] ~ bit splitting and operation

抖快B为啥做不好综艺
随机推荐
7 月 2 日邀你来TD Hero 线上发布会
Installing jupyter notebook under Anaconda
Symantec electronic sprint technology innovation board: Tan Jian, the actual controller, is an American who plans to raise 620million yuan
Niuke: how many different binary search trees are there
MicroBlaze serial port learning · 2
【牛客网刷题系列 之 Verilog快速入门】~ 位拆分与运算
Mathematical modeling for war preparation 35 time series prediction model
药品管理系统加数据库,一夜做完,加报告
Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today
Niuke network: longest continuous subarray with positive product
Distributed machine learning: model average Ma and elastic average easgd (pyspark)
安全帽佩戴检测算法研究
Mathematical modeling for war preparation 36 time series model 2
Deep learning - (2) several common loss functions
Lambda expression_ Stream stream_ File class
After 15 years of working on 21 types of hardware, where is Google?
观测云与 TDengine 达成深度合作,优化企业上云体验
八大基本排序(详解)
Halcon knowledge: regional topics [07]
【Verilog基础】十进制负数的八进制、十六进制表示