作者 xudada

删除,xls,xlsx验证

... ... @@ -3311,7 +3311,7 @@ Handling Information
const reader = new FileReader();
reader.onload = (e) => {
try {
const data = new Uint8Array(e.target.result);
/*const data = new Uint8Array(e.target.result);
// 检查文件头部以用来确认文件格式
const isXLSX =
data[0] === 0x50 &&
... ... @@ -3345,7 +3345,7 @@ Handling Information
type: 'error',
message: '未知的 Excel 格式'
});
}
}*/
const workbook = XLSX.read(data, { type: 'array' });
//const worksheetName = '格式化打印'; // 指定工作表名称
const worksheetName = workbook.SheetNames[0];
... ...