如何在 Eclipse 中编写 JavaScript

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3498136/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:00:44  来源:igfitidea点击:

How to write JavaScript in Eclipse

javascripteclipseeclipse-plugin

提问by Gladiator

I am using eclipse for java coding. Can I use JavaScript in eclipse? If yes, How to use it? Please give ideas.

我正在使用 Eclipse 进行 Java 编码。我可以在 eclipse 中使用 JavaScript 吗?如果是,如何使用它?请给出想法。

采纳答案by Tassos Bassoukos

If you want to edit Javascript within Eclipse, just install the WTP (Web Tools Project), there is one in there. Edit: You cannot execute Javascript from within Eclipse, but you can use, for example, Firefox with Venkman or Firebug to run the actual file in a browser.

如果你想在 Eclipse 中编辑 Javascript,只需安装 WTP(Web Tools Project),那里有一个。编辑:您不能从 Eclipse 中执行 Javascript,但您可以使用,例如,带有 Venkman 或 Firebug 的 Firefox 在浏览器中运行实际文件。

回答by letronje

I use the excellent Aptana studioeclipse plugin.

我使用优秀的Aptana studio eclipse 插件