Test

测试描述

by warren guo

HTML

<title>Spread HTML test page</title>

 <body>
     <div id="spreadContainer" style="width: 600px; height: 400px; border: 1px solid gray">

 </div>
 </body>

JavaScript

<script type="text/javascript">
         //<![CDATA[
         $(document).ready(function () {
             //Create a spread instance on DIV element which id is 'spreadContainer'
            // Obtain spread instance
             var spread = new GcSpread.Sheets.Spread($("#spreadContainer").get(0),{sheetCount:3});
             // Get active sheet in spread instance
             var activeSheet = spread.getActiveSheet();
            // Here is a sample to set A1 cell value to "A1" and foreground color to "red"
             // activeSheet.getCell(0,0).value("A1").foreColor("red");
             //
             // TODO: more initialize code here
        });
        //]]>
     </script>