导入的代码如下
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
var spreadNS = GC.Spread.Sheets;
$(document).ready(function () {
//spread.suspendPaint()
//var wpId =getQueryVariable("wpId");
var sheet = new GC.Spread.Sheets.Worksheet('New Sheet');
spread.addSheet(1, sheet);
let sheetJSON = JSON.stringify(hbtest3);
//sheetJSON = sheetJSON.replace(/\"style\":\"/g, '"style":"sc');
sheet.fromJSON(JSON.parse(sheetJSON));
spread.resumePaint();
}); |