jsLint Aptana jquery 正则表达式验证 [英] jsLint Aptana jquery regex validation

查看:30
本文介绍了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屋!

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