请将代码修改如下:
- const loadSheet = () => {
- spread.suspendPaint();
- spread.clearSheets();
- const sheet = new GC.Spread.Sheets.Worksheet('a');
- spread.addSheet(0, sheet);
- const num = (3 - 0) * Math.random() + 0;
- console.log(Math.floor(num));
-
- sheet.fromJSON(data[0]);
- sheet.name(data[0].name)
- // spread.addSheet(0, sheet);
- spread.resumePaint();
- }
复制代码 另,为保证designer功能正常,建议将资源引用完整,附件供参考。
|
|