问题描述:
正常调用:
$('#exportexecl').on('click', function () {
var workbook = new GC.Spread.Sheets.Workbook(document.getElementById("ordertable"));
console.log(workbook.toJSON());
var execlIo = new GC.Spread.Excel.IO();
var fileName = "订单" + '.xlsx';
console.log(fileName);
var json = JSON.stringify(workbook.toJSON());
console.log(json);
execlIo.save(json, function (blob) {
saveAs(blob,fileName);
}, function (e)
{
console.log(e);
}
);
});
报错如下:
- errorMessage:"Incorrect file format."
- __proto__:Object
提示不正确的文件格式。。请问,哪里有错吗?
|
|