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

coursedevelop
August 2005Improvement of Prototype's "Behaviour" library
January 2006John Resig and others created jQuery in January, the first stable version in August
2007jQuery 1.1.3 version released
Year 2008jQuery 1.2.6 version released
January 2009jQuery 1.3 released
January 2010jQuery1.4 version released
January 2011jQuery1.5 version released
August 2012jQuery1.8 version released
January 2013jQuery1.9 version released
April 2013jQuery2.0 version is released, removing support for IE 6-8 to improve performance and reduce file size
June 2016jQuery3.0 version released,

Advantages of jQuery

  • Lightweight, jQuery is small, and after compression, it is only about 100KB.
  • Powerful selector, jQuery supports almost all CSS selectors, and jQuery custom unique selectors.
  • Excellent DOM package, jQuery package a large number of commonly used DOM operations, so that developers can be more handy when DOM
  • Browser compatibility, jQuery eliminates browser compatibility issues.
  • Reliable event handling mechanism, jQuery event handling mechanism of absorption of JavaScript the essence of the event handler function, making jQuery 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 the API is too long to remember, and the jQuery 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/


知否
221 声望177 粉丝

Skrike while the iron is hot.


下一篇 »
jQuery 安装

引用和评论

0 条评论