如题 想导出成excel格式 但是报错了 如何解决 是否要引 FileSaver.min.js 代码:
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), {calcOnDemand: true});
var excelIo = new GC.Spread.Excel.IO();
var json = spread.toJSON();
var fileName='1111.xlsx';
excelIo.save(json, function (blob) {
saveAs(blob, fileName);
}, function (e) {
// process error
console.log(e);
});
|
|