如何在网页中加载 Electron 窗口?

huangapple go评论65阅读模式
英文:

How couild i load electron window in webpage?

问题

执行Electron窗口并将该Electron窗口加载到网页中,以展示我们的应用程序在构建后的外观。

英文:

How to execute electron window and load that electron window into webpage to show how our application will look after build

答案1

得分: 1

如评论部分中有人提到,Electron只是提供了一种在桌面上运行Web组件的方式。因此,如果您想查看桌面应用程序的外观,只需将您的JavaScript应用程序直接在任何端口上提供服务,然后像其他任何Web应用程序一样打开它。

将Electron视为您的Web应用程序之上的额外层。

英文:

As someone in the comment section mentioned electron just provides a way to run the web components on desktop. Therefore, If you want to see how the desktop app will look, just serve your javascript application directly on any port and open it just like any other web application.

Think of electron as an extra layer on top of your web application.

huangapple
  • 本文由 发表于 2020年1月6日 15:55:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/59608502.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定