随笔分类 -  electron

摘要:const { app, BrowserWindow, globalShortcut, webContents, Tray, Menu, } = require("electron"); let win = null; const createWindow = () => { win = new B 阅读全文
posted @ 2024-12-25 10:05 暖暖De幸福 阅读(54) 评论(0) 推荐(0)
摘要:const { app, BrowserWindow, globalShortcut, webContents } = require("electron"); app.on("ready", async () => { createWindow(); globalShortcut.register 阅读全文
posted @ 2024-12-25 09:44 暖暖De幸福 阅读(137) 评论(0) 推荐(0)
摘要:应用窗口在不同操作系统中的行为也不同。 Electron 允许您自行实现这些行为来遵循操作系统的规范,而不是采用默认的强制执行。 您可以通过监听 app 和 BrowserWindow 模组的事件,自行实现基础的应用窗口规范。 针对特定进程的控制流 通过检查 Node.js 的 process.pl 阅读全文
posted @ 2024-12-24 17:09 暖暖De幸福 阅读(45) 评论(0) 推荐(0)
摘要:安装electron 1.初始化配置文件 npm init #entry point 应为 main.js. 2.安装electron npm install --save-dev electron 3.在package.json 中添加启动命令 "start": "electron ." main 阅读全文
posted @ 2024-12-24 13:40 暖暖De幸福 阅读(51) 评论(0) 推荐(0)