没有相关的例子,
大致思路就是创建两个spread,一个隐藏的tempspread,一个显示的spread
var spread = new GC.Spread.Sheets.Workbook(document.getElementById('ss'), { sheetCount: 1 });
var tempspread = new GC.Spread.Sheets.Workbook();
隐藏的tempspread导入模板
tempspread.fromJSON(yourjson);
获取需要导入显示spread的sheet
var sheet = spread.getActiveSheet();
var tempsheet = tempspread.getActiveSheet();
通过sheet.toJSON sheet.fromJSON来导入
var sheetJSON = tempsheet.toJSON();
sheet.fromJSON(sheetJSON);
|