Electron基础
收集Electron的常见问题
#
Main Process, Renderer Process and Pages- Main Process: the process that runs package.json's main script. An Electron app always has one main process, but never more.
- Renderer Process: Each web page in Electron runs in its own process, which is called the renderer process.
- Relationship with Pages: The main process creates web pages by creating BrowserWindow instances. Each BrowserWindow instance runs the web page in its own renderer process. When a BrowserWindow instance is destroyed, the corresponding renderer process is also terminated.
#
Additional Tips- If you want to perform GUI operations in a web page, the renderer process of the web page must communicate with the main process to request that the main process perform those operations.