最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How can I validate my jQuery script? - Stack Overflow

programmeradmin4浏览0评论

I am looking for an online jQuery validator. Not a script that will validate my forms but an online tool with which I can give it some jQuery script and have it return syntax errors and other useful information. Thanks in advance!

I am looking for an online jQuery validator. Not a script that will validate my forms but an online tool with which I can give it some jQuery script and have it return syntax errors and other useful information. Thanks in advance!

Share Improve this question asked Mar 19, 2011 at 3:39 Web_DesignerWeb_Designer 74.6k93 gold badges209 silver badges266 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

Check out jsfiddle. 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.

发布评论

评论列表(0)

  1. 暂无评论