The idea of jquery is to write much less (write Less,do more). jquery's unique selectors, chained DOM operations, event-handling mechanisms, and well-encapsulated Ajax are all in the reach of other JavaScript libraries. The following advantages are summed up:
(1) Lightweight. jquery is very lightweight and less than 30KB with Packer compression.
(2) Powerful selector. jquery allows developers to use almost all selectors from CSS1 to CSS3 , as well as jquery's original advanced and complex selectors.
(3) Excellent DOM-operated package jquery encapsulates a number of commonly used DOM operations, enabling developers to be handy when writing DOM operations related programs.
(4) Reliable event handling mechanism jquery's event-handling mechanism absorbs the essence of the event-handling functions written by JavaScript expert Dean Edwards, making jquery fairly reliable when it comes to handling event bindings.
(5) Excellent browser-compatible jquery works in IE 6.0+, FF, Safari 2.0+, Opera 9.0+.
(6) perfect Ajax. jquery encapsulates all AJAX operations into a function $.ajax (), allowing developers to focus on the business logic when dealing with Ajax without having to worry about complex browser compatibility and the creation and use of XMLHttpRequest objects.
(7) chain Operation The most characteristic of jquery is its chained operation mode-a set of actions on the same jquery object that can be ligatures directly without having to get the object repeatedly. This makes jquery's code incredibly elegant.
(8) The rich plugin supports jquery's extensibility and attracts developers from all over the world to write jquery extensions. There are now more than hundreds of official plugins supported.
The advantages of jquery