var excelIo = new GC.Spread.Excel.IO();
var json = spreadTemp.toJSON();
// here is excel IO API
excelIo.save(json, function (blob) {
saveAs(blob, fileName);
}, function (e) {
// process error
console.log(e);
});
利用 setBindingPath绑定数据源后导出的excel里面的数据将为空, 而用setValue则能导出数据,
是需要对json文件做进一步的处理吗?,还是方法有误。
|
|