【问题标题】:How to give path while using exceljs writefile?使用exceljs writefile时如何给出路径?
【发布时间】:2021-03-12 15:13:53
【问题描述】:

我不想在我的主目录中创建那个 excel,我有一个用于这些 excel 的另一个文件夹,但是我该如何路径呢?我在 docsenter image description here

中看不到任何关于路径的信息

【问题讨论】:

    标签: javascript node.js excel exceljs


    【解决方案1】:

    fileName 包含文件名,如果您在此处提供,还应包含路径。

    类似这样的:

    var completePath = "myDirectory\\" + fileName;
    

    也许您只想尝试使用 \ 甚至 ///

    【讨论】:

      猜你喜欢
      • 2018-08-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-31
      • 2013-11-22
      相关资源
      最近更新 更多