单元格级别绑定数据后,导出excel后数据是空的!
拿到的数据是绑定的数据格式,不是最终数据!!
- $('#JS_export').on('click', function () {
- // var $this = $(this);
- // console.log('导出')
- var data = spread.toJSON();
- console.log(data);
- excelIo.save(data, function (blob) {
- //do whatever you want with blob
- //such as you can save it
- saveAs(blob, 'alabim.xlsx');
- }, function (e) {
- //process error
- console.log(e);
- });
- // excelIo.save();
- })
复制代码
|
|