How can I use JSLint for a segment of code which depends on JQuery?
问题 I'm relatively new to Javascript, and I'd like to run the piece of code I spent the weekend playing with through JSLint so that it can point out where I was being a total idiot :) Unfortunately, I get tons of errors about missing function declarations, which are part of the JQuery javascript library and various plugins for it. Is there any way I can run such code through JSLint? 回答1: If you're using the web version of jslint, you can simply add the $ object in the predefined option: If you're