jsLint Aptana jquery regex validation

被刻印的时光 ゝ 提交于 2019-12-24 15:03:08

问题


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.

Many thanks,

Clara


回答1:


You can add global directive (to the JS file) and JSLint will ignore them: /*global $*/



来源:https://stackoverflow.com/questions/6653171/jslint-aptana-jquery-regex-validation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!