Eclipse - 选择哪个项目来创建 HTML/Javascript 项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16853600/
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
Eclipse - Which project to choose to create HTML/Javascript project
提问by Hashken
When I try to create a web page with eclipse, I have two options
-- Javascript project
-- Static web project
当我尝试用eclipse创建网页时,我有两个选择
——Javascript项目
——静态网页项目
If I choose the former, then configuring run
to launch a web browser seems to be difficult.
If I choose the later, I lose support for JavaScript.
如果我选择前者,那么配置run
以启动 Web 浏览器似乎很困难。
如果我选择后者,我将失去对 JavaScript 的支持。
So, how do I get the best of both?
那么,我如何才能做到两者兼得呢?
采纳答案by rumplestilskin
I have been using the 'static web project' option, and I am including HTML, JavaScript and PHP files in the project.
我一直在使用“静态 Web 项目”选项,并且我在项目中包含了 HTML、JavaScript 和 PHP 文件。
Make sure you include your .js
files in your .html
document, otherwise check your eclipse software is up to date to ensure you are getting JavaScript support.
确保.js
在.html
文档中包含您的文件,否则请检查您的 eclipse 软件是否是最新的,以确保您获得 JavaScript 支持。
http://wiki.eclipse.org/Eclipse_Project_Update_Sites
http://wiki.eclipse.org/Eclipse_Project_Update_Sites
sorry would have put this in a comment, but I think I need more reputation.
对不起,我会把它放在评论中,但我想我需要更多的声誉。