When I first came into contact with JQuery, the downloaded files included jquery.vsdoc.js, jquery.min.js and jquery.js. I was not very clear about the role of each file and which package to import. Sometimes it can be executed by introducing jquery.min.js, and sometimes it can be executed by introducing jquery.js. Now a brief explanation.
The functions of the two files are exactly the same, but from the file or above, we know that jquery.min.js should be the mini version, which means the file will be very small.
The function of jquery.vsdoc.js is to give smart prompts and auto-complete when editing in visual studio.
The code in jquery.js is the original code without processing, which is suitable for people to read and study.
The code in jquery.min.js has been specially processed, such as the names of variables are basically It is written as one letter, and the format indentation is deleted. Therefore, the file capacity is relatively small (min), and this file is generally called in the web page. The conclusion is that
is jquery-1.4.2.min.js is optimized, and query-1.4.2.js is easy for developers to read.