根据这串html代码生成npm里面的xlsxjs导出代码:!doctypehtmlheadmeta http-equiv=Content-Type content=texthtml; charset=utf-8meta name=ProgId content=ExcelSheetmeta name=Generator content=AsposeCell 2270styletr mso-heigh
const XLSX = require('xlsx');
const data = [ [ { v: '新生可期-复发套细胞淋巴瘤患者援助项目项目', s: { font: { size: 14, bold: true }, alignment: { horizontal: 'center' } } } ], [ { v: '配送捐赠药物说明书', s: { font: { size: 14, bold: true }, alignment: { horizontal: 'center' } } } ], [ { v: '接受药房:', s: { font: { size: 11 }, border: { bottom: { style: 'thin', color: { rgb: '000000' } }, right: { style: 'thin', color: { rgb: '000000' } } } } }, { v: '', s: { font: { size: 11 } } }, { v: '', s: { font: { size: 11 } } }, { v: '', s: { font: { size: 11 } } }, { v: '', s: { font: { size: 11 } } } ], [ { v: '接收地址:', s: { font: { size: 11 }, border: { bottom: { style: 'thin', color: { rgb: '000000' } }, right: { style: 'thin', color: { rgb: '000000' } } } } }, { v: '', s: { font: { size: 11 } } }, { v: '', s: { font: { size: 11 } } }, { v: '', s: { font: { size: 11 } } }, { v: '', s: { font: { size: 11 } } } ], [ { v: '配送单号:', s: { font: { size: 11 }, border: { bottom: { style: 'thin', color: { rgb: '000000' } }, right: { style: 'thin', color: { rgb: '000000' } } } } }, { v: '', s: { font: { size: 11 } } }, { v: '', s: { font: { size: 11 } } }, { v: '装箱时间:', s: { font: { size: 9 }, border: { bottom: { style: 'thin', color: { rgb: '000000' } }, right: { style: 'thin', color: { rgb: '000000' } } } } }, { v: '', s: { font: { size: 9 } } } ], [ { v: '接收时间:', s: { font: { size: 9 }, border: { bottom: { style: 'thin', color: { rgb: '000000' } }, right: { style: 'thin', color: { rgb: '000000' } } } } }, { v: '', s: { font: { size: 9 } } }, { v: '', s: { font: { size: 9 } } }, { v: '接收温度:', s: { font: { size: 9 }, border: { bottom: { style: 'thin', color: { rgb: '000000' } }, right: { style: 'thin', color: { rgb: '000000' } } } } }, { v: '', s: { font: { size: 9 } } } ], [ { v: '指定药师:', s: { font: { size: 11 }, border: { bottom: { style: 'thin', color: { rgb
原文地址: https://www.cveoy.top/t/topic/fuUB 著作权归作者所有。请勿转载和采集!