First you have to understand why you have to learn the advantages of jquery,jquery, of course, compared to the traditional JavaScript and DOM, now the advantages of jquery are summarized as follows:
1, lightweight.
jquery is very small and only about 18KB in compression packs.
2, powerful selector.
jquery not only supports all selectors in CSS, but also jquery's unique selector.
3, excellent DOM operation encapsulation.
jquery encapsulates a large number of commonly used DOM operations.
4, good compatibility.
jquery can be compatible in different browsers, while also fixing some differences between browsers.
5, chain-type programming
A set of actions that occur on the same jquery object can be ligatures directly without having to retrieve the object repeatedly, making jquery's code incredibly elegant.
6, implicit iteration
When you use jquery to find all the elements with the ". Class" class, and then hide them, you do not have to iterate through each returned element.
7, behavior and structure separation
8, rich plug-in support
9, open source
Anyone is free to use and make their own comments.
The core idea of jquery is: Write less and do much (write Less,do more).
Why use jquery?