Home >Web Front-end >Front-end Q&A >Is jquery native?
jquery is not native, but encapsulates many methods on the basis of native js, forming a js library; that is, jquery encapsulates commonly used functional codes of js, providing a simple JavaScript design mode, optimizing HTML document operations, event handling, animation design and Ajax interaction.
The operating environment of this article: Windows 7 system, jquery version 3.2.1, DELL G3 computer
Is jquery native?
jQuery is the abbreviation of js query. It can be understood as encapsulating many methods on the basis of native js and forming a js library.
Introduction to jquery:
jQuery is a fast and concise JavaScript framework. It is another excellent JavaScript code library (framework) after Prototype. It was launched in January 2006. Posted by John Resig. The purpose of jQuery's design is "write less, do more", which means writing less code and doing more things. It encapsulates common JavaScript function codes, provides a simple JavaScript design pattern, and optimizes HTML document operations, event processing, animation design and Ajax interaction.
The core features of jQuery can be summarized as follows: It has a unique chain syntax and a short and clear multi-functional interface; it has an efficient and flexible CSS selector, and can expand the CSS selector; it has convenient plug-in extensions Mechanism and rich plug-ins. jQuery is compatible with various mainstream browsers, such as IE 6.0, FF 1.5, Safari 2.0, Opera 9.0, etc.
The difference between native js and jquery:
1. The loading modes of native js and jquery entry functions are different;
2. Native js will wait until the dom element Loading is complete, and the image is also loaded before execution; jquery will wait until the dom element is loaded, but will not wait until the image is loaded before executing;
3. Regarding the function coverage problem, native js is writing multiple entries function, what is written later will overwrite what was written earlier; jquery will not overwrite but will be executed in sequence;
Recommended learning: "jquery video tutorial" "javascript basic tutorial》
The above is the detailed content of Is jquery native?. For more information, please follow other related articles on the PHP Chinese website!