js2-mode for Emacs将在编辑代码时捕获并突出显示一些常见的Javascript错误。它不像外部lint工具那样彻底,但它的反馈更直接
# 4 楼答案
你是说像皮棉一样的工具吗
JavaScript
看起来它可能有用
With JavaScript Lint, you can check all your JavaScript source code for common mistakes without actually running the script or opening the web page.
JavaScript Lint holds an advantage over competing lints because it is based on the JavaScript engine for the Firefox browser. This provides a robust framework that can not only check JavaScript syntax but also examine the coding techniques used in the script and warn against questionable practices.
JSLint takes a JavaScript source and scans it. If it finds a problem, it returns a message describing the problem and an approximate location within the source. The problem is not necessarily a syntax error, although it often is.
JSLint looks at some style conventions as well as structural problems. It does not prove that your program is correct. It just provides another set of eyes to help spot problems.
# 1 楼答案
Firebug和雅虎的YSlow插件非常有效地指出了你的低效之处
还可以尝试web developer插件并点击ctrl+shift+a,它会将您的本地代码直接加载到w3c验证程序中
了解508C的合规性——你不能测试它,但知道它很好
# 2 楼答案
W3C有一个Markup Validation Service用于验证(X)HTML
此外,W3C还有以下工具:
而且JSLint是一个检查JavaScript的工具
# 3 楼答案
js2-mode for Emacs将在编辑代码时捕获并突出显示一些常见的Javascript错误。它不像外部lint工具那样彻底,但它的反馈更直接
# 4 楼答案
你是说像皮棉一样的工具吗
JavaScript
看起来它可能有用
JSLint是同样的事情
HTML
CSS
# 5 楼答案
Firebug和CodeBurner为你的HTML和CSS提供参考资料。您可以在不离开页面的情况下快速查找HTML元素、属性和CSS属性