In this tutorial, we will learn the basic introductory knowledge of JQuery
JQuery
is a fast, simple JavaScript
framework, is the second Prototype
after another excellent JavaScript
code base. jQuery
greatly simplifies the JavaScript
. For example, a function that previously required a large piece of JavaScript code to achieve can be easily completed by jQuery
JQuery development history
course | develop |
---|---|
August 2005 | Improvement of Prototype's "Behaviour" library |
January 2006 | John Resig and others created jQuery in January, the first stable version in August |
2007 | jQuery 1.1.3 version released |
Year 2008 | jQuery 1.2.6 version released |
January 2009 | jQuery 1.3 released |
January 2010 | jQuery1.4 version released |
January 2011 | jQuery1.5 version released |
August 2012 | jQuery1.8 version released |
January 2013 | jQuery1.9 version released |
April 2013 | jQuery2.0 version is released, removing support for IE 6-8 to improve performance and reduce file size |
June 2016 | jQuery3.0 version released, |
Advantages of jQuery
- Lightweight,
jQuery
is small, and after compression, it is only about 100KB. - Powerful selector,
jQuery
supports almost allCSS
selectors, andjQuery
custom unique selectors. - Excellent
DOM
package,jQuery
package a large number of commonly usedDOM
operations, so that developers can be more handy whenDOM
- Browser compatibility,
jQuery
eliminates browser compatibility issues. - Reliable event handling mechanism,
jQuery
event handling mechanism of absorption ofJavaScript
the essence of the event handler function, makingjQuery
very reliable in dealing with the event binding. - Provides a variety of dynamic page effects.
- The perfect combination with
Ajax
technology greatly facilitates program development, enhances page interaction, and improves user experience. - There is a wealth of plug-in support. Currently there are hundreds of official plug-ins supported, and new plug-ins are constantly being released.
The main functions of the jQuery library
- HTML element selection
- HTML/DOM manipulation
- CSS operations
- JavaScript effects and animation
- HTML DOM traversal and modification
- AJAX
- Utilities
In addition, jQuery
also provides some plug-ins for us to use, which is convenient and fast for code implementation.
The difference between jQuery and native JavaScript
- The
JavaScript
of theAPI
is too long to remember, and thejQuery
API
is easy to remember. - Native
JavaScript
some code redundancy,jQuery
code simple. - Some browsers are not compatible with the properties or methods in the native
JavaScript
jQuery
helped us solve the browser compatibility problem. - The
JavaScript
is relatively low, the previous code has a problem, and the latter code cannot be executed.jQuery
relatively high fault tolerance rate, and there is a problem with the previous code, which does not affect the following code. - Native
JavaScript
cannot add multiple entry functions, if you add more than one, the latter will overwrite the former.jQuery
can write multiple entry functions.
Link: https://www.9xkd.com/
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。