Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个项目,客户端上传了几个 XLS 文件,我只需要从他用特定标题命名的列中获取数据(其中标题 = 第一行中的数据)。有时它们甚至不是相同的顺序,或者它们可能分布在工作表中,所以我不能使用范围。
我正在考虑使用要读取的列名创建一个数组,扫描工作表并找到列 ID,然后使用 getCellByColumnAndRow() 开始读取工作表。但是,我觉得这可能就像重新发明轮子一样,所以我想我会问是否有我不知道的现成方法。