Javascript JQuery 语法检查器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3357234/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 04:17:54  来源:igfitidea点击:

JQuery Syntax Checker

javascriptjquery

提问by chobo

Does anyone know of any JQuery syntax validators or checkers? The braces are killing me.

有谁知道任何 JQuery 语法验证器或检查器?牙套要死我了。

采纳答案by Paul Dragoonis

JSLintand a live demo site JSFiddlewill give you the ability to make sure something is valid and runs properly.

JSLint和现场演示站点JSFiddle将使您能够确保某些内容有效并正常运行。

As said, most IDE's will validate your Javascript. Eclipse, Netbeans, PHPEd and so on all have javascript checkers.

如上所述,大多数 IDE 将验证您的 Javascript。Eclipse、Netbeans、PHPEd 等都有 javascript 检查器。

回答by nicholasklick

Check out JSLint for validating JS code:

查看 JSLint 以验证 JS 代码:

http://www.jslint.com/

http://www.jslint.com/

Warning: JSLint will hurt your feelings

警告:JSLint 会伤害你的感情

回答by Mchl

It's JavaScript. Any IDE with JavaScript syntax checker should do. NetBeans has one.

它是 JavaScript。任何带有 JavaScript 语法检查器的 IDE 都可以。NetBeans 有一个。