Electron是什么?
Electron是一个使用 JavaScript、HTML 和 CSS 构建桌面应用程序的框架。 By embedding Chromium and Node.js into its binary, Electron allows you to maintain one JavaScript codebase and create cross-platform apps that work on Windows, macOS, and Linux — no native development experience required.
入门指南
我们建议您从本 教程开始,该教程将指导您完成开发 Electron 应用程序并将其分发给用户的过程。示例和 API 文档也是浏览和发现新事物的好地方。
Electron Fiddle 运行实例
Electron Fiddle is a sandbox app written with Electron and supported by Electron's maintainers. 我们强烈建议将其作为一个学习工具来安装,以便在开发过程中对Electron的api进行实验或对特性进行原型化。
Fiddle 已经完美的集成到我们的帮助文档之中。 When browsing through examples in our tutorials, you'll frequently see an "Open in Fiddle" button above a code block. If you have Fiddle installed, this button will open a fiddle.electronjs.org link that will automatically load the example into Fiddle, no copy-pasting required.
fiddle docs/latest/fiddles/quick-start
文档包含哪些内容?
所有官方文档都可以在侧边栏中查阅。以下是几个类别,以及相应的介绍:
- 教程:如何创建并发布您的第一个 Electron 程序。
- Electron 进程:对 Electron 中的进程,以及如何使用它们的参考。
- 最佳实践:在开发 Electron 程序时需要留意的一些细节。
- 示例代码: 有了示例代码稍微改一下就可以放入 Electron 应用中.
- 开发:有关开发的其它一些指导。
- 分发:学习如何向终端用户分发您的程序。
- 检测和调试: 如何调试 JavaScript, 如何编写测试代码, 还有就是如何使用其它工具快速创建 Electron 应用.
- 引用: 版本信息相关说明
- 参与贡献: 编译 Electron 并尝试参与贡献. 我们正在尽力让这一步骤更加简单。
Found a bug in Electron?
If you suspect you're running into a bug with the electron package, please check the GitHub issue tracker to see if any existing issues match your problem. 如果你很幸运的找到 bug,欢迎提交 issue 到 GitHub。