摘要:
Electron API 控制应用事件生命周期 运行于主进程 app事件 启动与初始化事件 will-finish-launching:Windows和Linux与ready相同,macOS类似NSApplication的对应提示 ready:Electron初始化完成时触发,可通过isReady或 阅读全文
posted @ 2025-04-07 14:22
lence
阅读(57)
评论(0)
推荐(0)
摘要:
Electron npm create @quick-start/electron 脚手架初始化项目 渲染进程和主进程通讯 渲染进程向主进程(单向 // preload ipcRenderer.send('set-title', title) // main ipcMain.on('set-titl 阅读全文
posted @ 2025-04-07 11:39
lence
阅读(38)
评论(0)
推荐(0)