jquery is based on js. jQuery is a fast and concise JavaScript framework. It is a class library encapsulated by JavaScript. It encapsulates commonly used function codes of JS, optimizes HTML document operations, event processing, animation design and Ajax interaction, and greatly simplifies the work originally done with JS. .
The operating environment of this tutorial: windows7 system, jquery1.10.2 version, Dell G3 computer.
jquery is based on js.
jQuery is a fast and concise JavaScript framework. It is another excellent JavaScript code library (framework) after Prototype. It was released by John Resig in January 2006.
jquery is an encapsulated JavaScript function library, a lightweight "write less, do more" JavaScript library.
jQuery encapsulates commonly used functional codes in JavaScript, provides a simple JavaScript design pattern, and optimizes HTML document operations, event processing, animation design and Ajax interaction.
What jquery can do
jQuery itself is a plugin-based JavaScript library, and its various functions can be enhanced through new plugins. jQuery provides an abstraction layer for Web programming, making it compatible with any browser and greatly simplifying work originally done with JavaScript.
In short, jQuery can complete the following tasks:
1. Quickly obtain document elements: jQuery's selection mechanism is built on the css selector, which provides a quick query for elements in the DOM document capabilities, and greatly enhances the way to obtain page elements in JavaScript.
2. Provide beautiful page dynamic effects: JQuery has a series of built-in animation effects, which can develop very beautiful web pages. Currently, many well-known websites use jQuery’s built-in effects, such as fade in and fade out. , dynamic special effects such as element removal.
3. Create Ajax non-refresh web pages: Ajax is the abbreviation of asynchronous JavaScript and XML. It can develop very sensitive non-refresh web pages, especially when developing server-side web pages, such as PHP websites, which need to go back and forth with For server communication, if Ajax is not used, the web page has to be refreshed every time the data is updated. However, after using Ajax special effects, the page can be partially refreshed, providing a very dynamic effect.
4. Provide enhancements to the JavaScript language: JQuery provides enhancements to the basic JavaScript structure, such as element selection and array processing.
5. Enhanced event handling: jQuery provides various page events, which can prevent programmers from adding too much event handling code in HTML. Most importantly, its event handler eliminates various Browser compatibility issues.
6. Change the content of the web page: JQuery can modify the content of the web page, such as changing the text of the web page, inserting or converting web page images. jQuery simplifies the way that JavaScript code needs to be processed.
[Recommended learning: jQuery video tutorial, web front-end video]
The above is the detailed content of Is jquery based on js?. For more information, please follow other related articles on the PHP Chinese website!