我的代码是这样的:Header头部引入:
<link rel="stylesheet" type="text/css" href="/scripts/Spread.Sheets/css/gc.spread.sheets.excel2013white.10.0.1.css" />
<script type="text/javascript" src="/scripts/Spread.Sheets/scripts/gc.spread.sheets.all.10.0.1.min.js"></script>
<script type="text/javascript" src="/scripts/Spread.Sheets/scripts/interop/gc.spread.excelio.10.0.1.min.js"></script>
这里代码省略...................
//导出到Excel
function ExportData() {
var excelIO = new GC.Spread.Excel.IO();
var json = spread.toJSON();
excelIO.save(json, function (blob) {
saveAs(blob, 'export.xlsx');
}, function (e) {
console.log(e);
});
}
导出时报错:
这是什么问题?
|
|