下面的代码请参考
另外,想了解,在什么场景下需要这样设置格式?
- var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
- spread.suspendPaint();
- spread.suspendEvent();
- var sheet = spread.getActiveSheet();
- var range = sheet.getRange(0, 0, sheet.getRowCount(), sheet.getColumnCount(), GC.Spread.Sheets.SheetArea.viewport);
- range.value(123456.123);
- range.formatter("#,##0.0");
- spread.resumeEvent();
- spread.resumePaint();
复制代码
|