This article mainly introduces how JSLint improves the quality of JS Code. If you need it, you can refer to the introduction of rich Web Front-end applications, developers have to review and pay attention to the capabilities and usage of the
This article mainly introduces the JSLint to improve the quality of JS code, the need for friends can refer to the advent of rich Web front-end applications, developers have to re-examine and attach importance to the ability of JavaScript language
With the advent of rich Web front-end applications, developers have to re-examine and attach importance to the ability and use of JavaScript language, and discard the previous pattern of "copy/paste" Common scripts to accomplish simple front-end
1.JSLint IntroductionJSLint defines a set of coding conventions that are stricter than the language defined by the ECMA. These coding conventions draw on years of rich coding experience, with an age-old programming principle as a tenet: to do does
JSLint is a JavaScript program that looks to problems in JavaScript programs. It is acode quality tool
How to use Jslintfor Eclipse
Installation
Step One : Open Eclipse up in your machine and go to ' help '-> ' Install New Software '
Step Two:
use JSLint to check for JavaScript code errors in notepad++
The installation steps are as follows:
First download the plugin here and extract it to any directory.
Then select the extracted JSLintNpp.dll file in the Settings >> import >> Import
. ASP. NET 4.0. net Ajax library is a completely different Ajax library. Now it fully adopts the new BSD Protocol, that is, it is completely open-source, and it is part of the codeplex Foundation (codeplex.org. The Microsoft Ajax client library has
Enforcing optionsWhen set to true, these options would make jshint produce more warnings about your code. Bitwise This option prohibits the use of bitwise operators such ^ as (XOR), | (OR) and others. Bitwise operators is very rare in JavaScript
When writing JS code, a validation tool can help me avoid stupid mistakes. Although I have many years of experience, I still have variable naming incorrect, resulting in syntax errors, and forgetting to handle errors correctly. A good calibration
CTRL + d (press the shortcut key repeatedly to continue and select the next same text for simultaneous editing)CTRL + G jump to the corresponding rowCTRL + J merge rows (multiple rows to be merged have been selected)CTRL + l select the entire line
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.