Commit 3316e2db by 张云飞

zyf

parents be8b56b8 0b3ecdc0
// var excel = require('exceljs');
// async function readxls(path) {
// var promise = new Promise((resv, rej) => {
// var workbook = new excel.Workbook();
// workbook.properties.date1904 = true;
// workbook.xlsx.readFile(path)
// .then(function () {
// return resv(workbook);
// }).catch(function (e) {
// return rej(e);
// });
// });
// return promise;
// }
// (async ()=>{
// var wb= await readxls("/tmp/f2b9b12ea5bf4bc79568acc5aa907f83.xlsx");
// var sheet = wb.getWorksheet(1);
// // sheet.eachRow({ includeEmpty: true }, function(row, rowNumber) {
// // if(rowNumber>=10 && rowNumber<=10){
// // row.eachCell({ includeEmpty: true }, function(cell, colNumber) {
// // if(colNumber==28){
// // var sval=cell.value?(typeof cell.value=="object"?cell.value.result:cell.value):"0";
// // console.log(sval);
// // }
// // });
// // }
// // });
// })()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment