摘要: path.basename(path[, ext]) path <string> ext <string> 可选的文件扩展名。区分大小写 返回: <string> path.basename() 方法会返回 path 的最后一部分(返回文件名称[.ext]),类似于 Unix 的 basename  阅读全文
posted @ 2021-01-02 15:45 baixinL 阅读(136) 评论(0) 推荐(0)
摘要: 进程:主进程 const { dialog } = require('electron') dialog.showOpenDialog({ properties: ['openFile', 'multiSelections'] }) 进程:渲染进程 const { dialog } = requir 阅读全文
posted @ 2021-01-02 15:10 baixinL 阅读(909) 评论(0) 推荐(0)