启用eclipse的JavaScript验证 [英] Enable javascript validation for eclipse

查看:162
本文介绍了启用eclipse的JavaScript验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先:我搜索了很多,我找不到任何人有这个问题(看起来像是一些基本的东西,但是我已经2个小时处理了这个问题)。



我的问题是,很久以前我有了Eclipse的javascript验证器。我不知道为什么我不再拥有了,但我想要它。



我发现这个,并试图做逆:
< a href =https://stackoverflow.com/questions/3131878/how-do-i-remove-javascript-validation-from-my-eclipse-project>如何从我的eclipse项目中删除javascript验证? a>



但是我的问题是当我点击我的项目下的属性时,我找不到Javascript选项卡..为什么?我认为问题在这里,我尝试修改任何其他的验证器,也在窗口 - >首选项 - > Javascript或Validtors->客户端JavaScript ..



另外我没有Builders下的JavaScript验证器。



编辑



这是我在项目属性中看到的:





这是我在验证下看到的



这是我在Builders下看到的

解决方案

将JavaScript自然添加到项目中(基本上,告诉Eclipse将其视为JavaScript项目)。右键单击项目,然后选择配置> 转换为JavaScript项目... 。在这样做之后,您应该会看到一个名为JavaScript验证器的Builder,并在属性中具有 JavaScript 部分。


First: I searched a lot and I can't find anyone to have this problem (it seems like it something basic, but I have been 2 hours dealing with this).

My problem is that long ago I had the javascript validator for eclipse. I don't know why I don't have it anymore, but I want it back.

I found this and tried to do the inverse: How do I remove javascript validation from my eclipse project?

But my problem is that when I click Properties under my project, I can't find the "Javascript" tab.. Why? I think the problem is here, I tried modifying anything else under validators, also under window->Preferences->Javascript or Validtors->Client-side Javascript..

Also I don't have the JavaScript Validator under Builders.

EDIT:

This is what I see on my project properties:

This is what I see under validation

This is what I see under Builders

解决方案

You need to add the JavaScript "nature" to the project (basically, tell Eclipse to treat it as a JavaScript project). Right-click on the project and choose Configure > Convert to JavaScript Project.... After doing that you should see a Builder named "JavaScript Validator" and have the JavaScript section in the properties.

这篇关于启用eclipse的JavaScript验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆