如何在 js-xlsx 中获取第一个 XLSX 工作表
如果你想读取 XLSX 文件并使用 js-xlsx 仅获取该文件中的第一个工作表,你可以使用此代码片段:
get_first_sheet.js
const XLSX = require('xlsx');
const table = XLSX.readFile('mytable.xlsx');
// 在此处提取第一个工作表
const sheet = table.Sheets[table.SheetNames[0]];Check out similar posts by category:
Javascript, NodeJS
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow