我可以制作本地独立的 JavaScript 程序吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8958976/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can I make a local Standalone JavaScript program?
提问by QuinnFreedman
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?
我非常熟悉基于 web 的 JavaScript,因为它与 html 和 canvas 相关,但我想知道是否有可能使用无法在浏览器中打开的 javascript 制作完整的独立应用程序。是否有任何 GUI 或命令提示符可以让我这样做?
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?
如果没有,我可能愿意编写其他一些可以读取 html 的程序,就像 Notch 在 Minecraft 登录屏幕上所做的那样。是否有捷径可寻?
采纳答案by Scott Smith
Not sure if this is what you are asking, but Node.js might be it.
不确定这是否是您要问的,但 Node.js 可能是。
回答by voithos
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 (reallycross platform) applications. Looks verynice, although I haven't used it.
Adobe AIR- uses HTML and ActionScript/JavaScript to build native applications, although they've dropped support for Linux. :(
回答by Dave Newton
There's also Rhino and Swing on the JVM.
JVM 上还有 Rhino 和 Swing。