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.
下面的函数是创建 excel 文件并将其保存在我的源文件夹中。但是我想设置一个特定的路径,该文件将只保存在该特定路径上 wb.write( ${filename}.xlsx)
${filename}.xlsx
您可以将路径添加为参数:
前任。
return wb.write(`./report/excelReports/report-${month}.xlsx`)