摘要: 在渲染进程(UI界面)中使用shell模块 //在文件管理器中打开 const { ..., shell } = require('electron'); const showFile = () => { if (!filePath) { return alert('This file has no 阅读全文
posted @ 2020-06-16 17:38 easy5 阅读(515) 评论(3) 推荐(1)
摘要: 应用菜单 替换设置应用程序菜单 创建应用菜单模块 创建一个新的名为application-menu.js文件, const { app, BrowseWindow, Menu, shell } = require('electron'); const mainProcess = require('. 阅读全文
posted @ 2020-06-16 02:18 easy5 阅读(287) 评论(0) 推荐(0)