How can I validate my jQuery script?
I am looking for an online jQuery validator. Not a script that will validate my forms but an online tool w开发者_Go百科ith which I can give it some jQuery script and have it return syntax errors and other useful information. Thanks in advance!
Check out jsfiddle.net. You can paste in your Javascript, link in external libraries, and run your code through both a formatter and JSLint, which will identify any issues in the syntax of the code itself.
It also provides a preview pane to go through more thorough functionality testing.
Try jQuery lint. Quoting the website:
jQuery Lint is a simple script you can download and use with jQuery. It works over the top of jQuery and diligently reports errors and any incorrect usage of jQuery. It will also, to some extent, offer guidance on best practices and performance concerns.
If you really need to use it online, you can do so on jsfiddle.
精彩评论