- 打开E盘根目录下名为
test
的文件夹
const { shell } = require('electron')
shell.openPath('E:\\test')
- 打开
当前electron项目
根目录下名为src
的文件夹
const { app , shell } = require('electron')
shell.openPath(`${app.getAppPath()}\\src`)
electron 打开本地文件夹
阅读 24
2023-07-31
test
的文件夹const { shell } = require('electron')
shell.openPath('E:\\test')
当前electron项目
根目录下名为src
的文件夹const { app , shell } = require('electron')
shell.openPath(`${app.getAppPath()}\\src`)
相关推荐
精彩评论(0)