我可以制作一个本地独立的 JavaScript 程序吗?
可能的重复:
你能使用 JavaScript 进行桌面开发吗?
我非常熟悉 Web -基于 JavaScript,因为它与 html 和 canvas 相关,但我想知道是否有可能使用 javascript 制作一个不会在浏览器中打开的完整独立应用程序。是否有任何 GUI 或命令提示符可以让我执行此操作?
如果没有,我可能会愿意编写一些其他可以读取 html 的程序,就像 Notch 对 Minecraft 登录屏幕所做的那样。有没有简单的方法可以做到这一点?
Possible Duplicate:
Can you do Desktop Development using JavaScript?
I am very familiar with web-based JavaScript as it relates to html and canvas, but I was wondering if it would be possible to make a complete standalone application using javascript that would NOT open in a browser. Is there any GUI or command prompt that would allow me to do this?
If not, I might be open to writing some other program that could read html, as Notch did with the Minecraft login screen. Is there an easy way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有一些专门为此设计的框架和库。以下是一些:
Titanium - 使用网络技术的平台(HTML、Javascript、CSS)创建跨平台(真正跨平台)应用程序。看起来非常不错,虽然我还没用过。
Adobe AIR - 使用 HTML 和 ActionScript/JavaScript 构建本机应用程序,尽管它们已经放弃了对Linux。 :(
There are frameworks and libraries that are designed for this. Here are a few:
Titanium - a platform that uses the web technologies (HTML, Javascript, CSS) to create cross platform (really cross platform) applications. Looks very nice, although I haven't used it.
Adobe AIR - uses HTML and ActionScript/JavaScript to build native applications, although they've dropped support for Linux. :(
不确定这是否是您要问的,但 Node.js 可能就是这样。
http://nodejs.org/
Not sure if this is what you are asking, but Node.js might be it.
http://nodejs.org/
JVM 上还有 Rhino 和 Swing。
There's also Rhino and Swing on the JVM.