想要在electron 打开资源管理器显示要打开的文件如上图所示

代码如下:
import { shell } from 'electron'
shell.showItemInFolder(path);
想要在使用设备的默认方式打开文件,代码如下
import { shell } from 'electron'
shell.openItem(path);
想要在electron 打开资源管理器显示要打开的文件如上图所示

代码如下:
import { shell } from 'electron'
shell.showItemInFolder(path);
想要在使用设备的默认方式打开文件,代码如下
import { shell } from 'electron'
shell.openItem(path);
1379
2392

被折叠的 条评论
为什么被折叠?