jsLint Aptana jquery regex validation
问题 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