Aptana //novalidate 选项
我正在使用 Eclipse(使用 Aptana 插件)编写Processing.js 代码,我对 Javascript 首选项中的这个选项有点困惑:
在 //novalidate 评论中启用错误过滤
使用Processing.js允许我(有时强迫我 - 例如,它使用Java“void”而不是Javascript“函数”作为方法声明)对JavaScript语法做一些时髦的事情验证器不喜欢。我收到了一堆错误消息,我想将其消除,但我宁愿使用 Eclipse 编辑器,因为我网站的其余部分都在那里。
我尝试在同一行的分号之前、之后、之后,甚至在文件的开头粘贴“//novalidate”,但它没有效果。我还尝试在“首选项”->“添加排除规则”验证,但这似乎没有做任何事情,关闭问题 -> 中的“Javascript问题”也没有做任何事情。配置内容...(我想避免这样做,因为我在网站的其他地方执行常规的 javascript)。我在 Aptana 网站上找不到“//novalidate”的任何文档 - 有人知道如何正确使用它吗?
提前致谢。
I'm writing Processing.js code using Eclipse (with the Aptana plugin), and I'm a little confused by this option in the Javascript preferences:
Enable error filtering inside //novalidate comments
Using Processing.js allows me (and occasionally forces me - for example, it uses the Java "void" instead of the Javascript "function" for method declarations) to do some funky things to javascript syntax that the validator doesn't like. I've got a bunch of error messages that I'd like to silence, but I'd rather use the Eclipse editor because the rest of my site is there.
I've tried sticking "//novalidate" before, after, after the semicolon on the same line, and even at the beginning of the file, but it has no effect. I've also tried adding exclude rules in Preferences -> Validation, but that doesn't seem to do anything, nor does turning off "Javascript problems" in Problems -> Configure Contents... (which I'd like to avoid, because I'm doing regular javascript elsewhere on my site). I can't find any documentation for "//novalidate" on the Aptana website - does anyone have any idea how to use this properly?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过 Aptana 支持方法?
Have you tried Aptana Support methods?