When I was just getting started with JQuery, the downloaded files include jquery. vsdoc. js, jquery. min. js and jquery. js is not very clear about the role of each file and the package to be introduced. Sometimes the introduction of jquery. min. js can be executed, and sometimes the introduction of jquery. js can also be executed. Now let's make a simple description.
The functions of the two files are exactly the same, but from the file or above we know that jquery. min. js should be a mini version, that is, the file will be very small.
Jquery. vsdoc. js provides smart prompts and Automatic completion when editing in visual studio.
The code in jquery. js is the original code that is not processed, and is suitable for people to read and study.
Jquery. min. the code in js has been specially processed. For example, the variable names are basically written as a letter, and the format indentation is deleted. therefore, the file size is relatively small (min), which is generally called on the webpage.
The conclusion is that jquery-1.4.2.min.js is optimized, and query-1.4.2.js is easy to develop and read.