jsLint Aptana jQuery正则表达式验证 [英] jsLint Aptana jquery regex validation
本文介绍了jsLint Aptana jQuery正则表达式验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图让JSLint忽略以下与jquery相关的错误(未定义'$'),我需要在Apatana的javascript验证过滤器中添加的正则表达式是什么才能使之成为可能.
I'm trying to get JSLint to ignore the following jquery related errors ('$' is not defined), what would be the regex that I would need to add in Apatana's javascript validation filter to make this possible.
或者有完全不同的方法来解决该问题.
Or is there a completely different way to approach the issue.
非常感谢,
克拉拉
推荐答案
您可以添加全局指令(到JS文件),而JSLint将忽略它们:/*global $*/
You can add global directive (to the JS file) and JSLint will ignore them: /*global $*/
这篇关于jsLint Aptana jQuery正则表达式验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文