摘要: 项目代码 https://github.com/electron-in-action/firesale/tree/chapter-6 #代码解析 窗口标题 根据文件路径获取文件名: path.basename(filePath) 设置窗口标题:currentWindow.setTitle(title 阅读全文
posted @ 2020-06-12 14:46 easy5 阅读(496) 评论(0) 推荐(0)
摘要: 项目代码 https://github.com/electron-in-action/firesale/tree/chapter-5 代码解析 重构打开文件函数 添加参数, targetWindow 表示当前窗口 main.js const openFile = exports.openFile = 阅读全文
posted @ 2020-06-12 12:18 easy5 阅读(473) 评论(0) 推荐(0)