轉帖|使用教程|編輯:鮑佳佳|2021-01-04 10:27:58.757|閱讀 102 次
概述:本示例展示了如何使用SpreadJS創建商業關鍵業績指標表單, 例如財務關鍵業績指標表單這個示例主要使用了公式,單元格格式和條件格式, 以及使用fromJSON加載預定義的模板。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
下面的示例展示了如何使用SpreadJS創建商業關鍵業績指標表單, 例如財務關鍵業績指標表單。
這個示例主要使用了公式,單元格格式和條件格式, 以及使用fromJSON加載預定義的模板。
注意,多個表單包含的數據是相互聯系的。
app.js:
window.onload = function () { var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 1 }); initSpread(spread); }; function initSpread(spread) { var sd = data; if (sd.length > 0) { if (!spread) { return; } spread.suspendPaint(); spread.fromJSON(sd[0]); spread.resumePaint(); } }
Index.html:
<!doctype html> <html style="height:100%;font-size:14px;"> <head> <meta name="spreadjs culture" content="zh-cn" /> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" type="text/css" href="$DEMOROOT$/zh/purejs/node_modules/@grapecity/spread-sheets/styles/gc.spread.sheets.excel2013white.css"> <script src="$DEMOROOT$/zh/purejs/node_modules/@grapecity/spread-sheets/dist/gc.spread.sheets.all.min.js" type="text/javascript"></script> <script src="$DEMOROOT$/zh/purejs/node_modules/@grapecity/spread-sheets-resources-zh/dist/gc.spread.sheets.resources.zh.min.js" type="text/javascript"></script> <script src="$DEMOROOT$/spread/source/js/license.js" type="text/javascript"></script> <script src="$DEMOROOT$/spread/source/data/financialKPIs.js" type="text/javascript"></script> <script src="app.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="styles.css"> </head> <body> <div class="sample-tutorial"> <div id="ss" style="width:100%;height:100%"></div> </div> </body> </html>
Style.css:
.sample-tutorial { position: relative; height: 100%; overflow: hidden; } body { position: absolute; top: 0; bottom: 0; left: 0; right: 0; }
選擇SpreadJS的六大原因:
強大的公式計算引擎:SpreadJS 兼容 450 種以上的 Excel 公式函數,內置高效、可擴展的計算引擎,滿足用戶自定義公式、跨表格引用等多場景下的計算需求,輕松實現數據聚合,讓有效數據不斷完善
本篇文章你學會了嗎 !趕快下載體驗吧!為慶祝慧都成立17周年。我們推出購正版送上萬豪禮活動,界面開發工具正版授權最高直降10000+元 ,SpreadJS正版授權低至3490元!歡迎咨詢慧都在線客服了解詳情!
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自: