electron 菜单栏
If you are new here, please consider checking out my recent articles on Electron JS including Tray Icons.
如果您是新来的,请考虑查看我最近关于Electron JS的文章, 包括托盘图标 。
In this tutorial, we will set up 2 menu items for a tray icon which when a user right-clicks, the menu appears just like the image below.
在本教程中,我们将为托盘图标设置2个菜单项,当用户右键单击时,菜单如下图所示。
![Electron JS | Add tray icon menu (1)](https://i-blog.csdnimg.cn/blog_migrate/5405e84282960402f898a875da9b9d89.png)
<