success: () => {
this.excelIo = new GC.Spread.Excel.IO()
},exportExcel = () => {
console.log("导出Excel表格")
let json = JSON.stringify(this.spread.toJSON());
let fileName = 'spread.xlsx'
//export Spread.Sheets json to excel file
this.excelIo.save(json, function (blob) {
// saveAs(blob,fileName)
//do whatever you want with blob
//such as you can save it
}, function (e) {
//process error
console.log(e);
});
}点击导出方法后没反应 console中会输出 导出Excel表格 该方法已执行
|
|