<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          ExcelJSNode 的 Excel 模塊

          聯(lián)合創(chuàng)作 · 2023-09-23 16:30

          ExcelJS 是一個(gè) Node.js 模塊,可用來(lái)讀寫和操作 XLSX 和 JSON 電子表格數(shù)據(jù)和樣式。

          示例代碼:

          // Add column headers and define column keys and widths
          // Note: these column structures are a workbook-building convenience only,
          // apart from the column width, they will not be fully persisted.
          worksheet.columns = [
              { header: "Id", key: "id", width: 10 },
              { header: "Name", key: "name", width: 32 },
              { header: "D.O.B.", key: "DOB", width: 10 }
          ];
          
          // Access an individual columns by key, letter and 1-based column number
          var idCol = worksheet.getColumn("id");
          var nameCol = worksheet.getColumn("B");
          var dobCol = worksheet.getColumn(3);
          
          // set column properties
          
          // Note: will overwrite cell value C1
          dobCol.header = "Date of Birth";
          
          // Note: this will overwrite cell values C1:C2
          dobCol.header = ["Date of Birth", "A.K.A. D.O.B."];
          
          // from this point on, this column will be indexed by "dob" and not "DOB"
          dobCol.key = "dob";
          
          dobCol.width = 15;
          
          // iterate over all current cells in this column
          dobCol.eachCell(function(cell, rowNumber) {
              // ...
          });
          
          // iterate over all current cells in this column including empty cells
          dobCol.eachCell({ includeEmpty: true }, function(cell, rowNumber) {
              // ...
          });
          瀏覽 18
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  成人黄色录像 | 好逼天天有 | 美女操B网站 | 亚洲欧美bt| 三级性视频 |