【发布时间】:2016-10-05 10:24:03
【问题描述】:
var filepath="path of a file";
var txtFile = new File(filepath);
【问题讨论】:
-
gist.github.com/Arahnoid/9925725 来自 github 的链接
标签: electron atom-editor
var filepath="path of a file";
var txtFile = new File(filepath);
【问题讨论】:
标签: electron atom-editor
错误提示“需要 2 个参数”。所以你需要两个参数。
试试
var txtFile = new File([""], filepath);
【讨论】: