如何用电子创建无模式对话框?

How to create modeless dialog with electron?

我想用electron创建一个无模式的对话框,但是我在官方文档中没有找到关于这个主题的内容。有人可以帮助我吗?

正如其 Quick Start guide 中所述:

Electron enables you to create desktop applications with pure JavaScript by providing a runtime with rich native (operating system) APIs. You could see it as a variant of the Node.js runtime that is focused on desktop applications instead of web servers.

This doesn't mean Electron is a JavaScript binding to graphical user interface (GUI) libraries. Instead, Electron uses web pages as its GUI, so you could also see it as a minimal Chromium browser, controlled by JavaScript.

所以,只需使用 HTML、CSS 和 javascript!例如,您可以使用 dialog native element or any other library like Bootstrap, Vex, Bootbox.js