Home > Web Front-end > JS Tutorial > Comparative discussion on jquery.js and jquery.min.js in JQuery_jquery

Comparative discussion on jquery.js and jquery.min.js in JQuery_jquery

WBOY
Release: 2016-05-16 17:33:51
Original
1263 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template