Eclipse - 选择创建HTML / Javascript项目的项目

时间:2023-01-17 11:19:11

When I try to create a web page with eclipse, I have two options
-- Javascript project
-- Static web project

当我尝试使用eclipse创建一个网页时,我有两个选项 - Javascript项目 - 静态Web项目

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?

那么,我如何充分利用两者?

1 个解决方案

#1


7  

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.

确保在.html文档中包含.js文件,否则请检查您的eclipse软件是否是最新的,以确保您获得JavaScript支持。

http://wiki.eclipse.org/Eclipse_Project_Update_Sites

sorry would have put this in a comment, but I think I need more reputation.

对不起会把这个放在评论中,但我想我需要更多的声誉。

#1


7  

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.

确保在.html文档中包含.js文件,否则请检查您的eclipse软件是否是最新的,以确保您获得JavaScript支持。

http://wiki.eclipse.org/Eclipse_Project_Update_Sites

sorry would have put this in a comment, but I think I need more reputation.

对不起会把这个放在评论中,但我想我需要更多的声誉。