示例代码:
var activeSheet = spread.getActiveSheet();
//suspendCalcService:挂起计算服务。
activeSheet.suspendCalcService(false);
activeSheet.setValue(0,0,1);
activeSheet.setValue(0,1,2);
activeSheet.setValue(0,2,10);
activeSheet.getCell(1,1).formula("=SUM(A1:C1)");
// resumeCalcService:恢复计算服务。
activeSheet.resumeCalcService(true);
具体用法请参考上面的几个API链接教程 |