What is jQuery used for? jQuery is actually a js framework

What is jQuery used for? jQuery is actually a js framework

Introduction to jQuery

The jQuery library can be added to a web page with a simple line of markup.

Basic knowledge you need Before you start learning jQuery, you should have a basic understanding of the following:

  • HTML
  • CSS
  • JavaScript

If you need to study these subjects first, please find these tutorials on our home page.

What is jQuery?

jQuery is a JavaScript library.

jQuery is a lightweight "write less, do more" JavaScript library.

123WORDPRESS.COM editor adds :

advantage:

Compared with native js code, very powerful functions can be achieved with very little code, and the compatibility is also good. Now many people use native js to consider supporting multiple browsers, etc., especially jQuery's selector is relatively powerful. It is generally used in actual projects to reduce the development cycle. Most companies will require the use of jQuery, and ordinary people's js cannot reach this level.

shortcoming:

But for students who are just starting to learn js, using this is not conducive to learning. Many people may use jquery but are not very good at writing native js, which is not conducive to the improvement of personal skills. Therefore, for early js learners, you can first practice with native js and learn by comparing it with jquery. Otherwise, there will be no better js library than jquery in the future.

The jQuery library includes the following features:

  • HTML element selection
  • HTML element manipulation
  • CSS Operations
  • HTML Event Functions
  • JavaScript Effects and Animations
  • HTML DOM traversal and modification
  • AJAX
  • Utilities

Tip: In addition, Jquery also provides a large number of plug-ins.

Why use jQuery?

There are a large number of open source JS frameworks on the Internet, but jQuery is the most popular JS framework and provides a large number of extensions.

Many big companies are using jQuery, for example:

Google
Microsoft
IBM
Netflix

Does jQuery work on all browsers?

The jQuery community is aware of the numerous compatibility issues with JS in different browsers. Currently, jQuery is compatible with all major browsers, including Internet Explorer 6!

jQuery is a framework based on JavaScript class library. It provides many JavaScript class libraries and some CSS style sheet encapsulation. It is easy to use, simplifies the interaction between users and browsers, and improves system performance and development efficiency.

The design principle of jQuery is "write Less, Do More", which advocates writing less code and doing more things. It encapsulates commonly used JavaScript functional codes and provides a simple JavaScript design mode to optimize HTML document operations, event processing, animation design and Ajax interaction.

The core features of jQuery can be summarized as: unique chain syntax and short, clear and multi-functional interface; efficient and flexible CSS selectors, and the ability to extend CSS selectors; convenient plug-in extension mechanism and rich plug-ins. jQuery is compatible with various mainstream browsers, such as IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+, etc.

Language Features

1. Quickly obtain document elements

jQuery's selection mechanism is built on the Css selector, which provides the ability to quickly query elements in DOM documents 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 be used to develop very beautiful web pages. Many websites use jQuery's built-in effects, such as fade in and out, element removal, and other dynamic effects.

3. Create AJAX non-refresh web page

AJAX is the abbreviation of asynchronous JavaScript and ML, which can be used to develop very responsive and refresh-free web pages. This is especially true when developing server-side web pages, such as PHP websites, which require round-trip communication with the server. If AJAX is not used, the web page will have to be refreshed every time the data is updated. After using AJAX effects, the page can be partially refreshed to provide a dynamic effect.

This concludes this article about what jQuery is used for. jQuery is actually a js framework. For more information about what jQuery is, please search 123WORDPRESS.COM’s previous articles or continue browsing the following related articles. I hope you will support 123WORDPRESS.COM in the future!

<<:  MySQL 5.7.17 winx64 installation and configuration tutorial

>>:  15 Vim quick reference tables to help you increase your efficiency by N times

Recommend

Example code for mixing float and margin in CSS

In my recent studies, I found some layout exercis...

How to implement rounded corners with CSS3 using JS

I found an example when I was looking for a way t...

A brief talk about MySQL semi-synchronous replication

Introduction MySQL achieves high availability of ...

Rendering Function & JSX Details

Table of contents 1. Basics 2. Nodes, trees, and ...

ES6 loop and iterable object examples

This article will examine the ES6 for ... of loop...

4 functions implemented by the transform attribute in CSS3

In CSS3, the transform function can be used to im...

A brief discussion on Mysql specified order sorting query

Recently, I have been working on a large-screen d...

Windows Server 2016 Quick Start Guide to Deploy Remote Desktop Services

Now 2016 server supports multi-site https service...

MySQL Innodb key features insert buffer

Table of contents What is insert buffer? What are...

SQL injection vulnerability process example and solution

Code example: public class JDBCDemo3 { public sta...

A brief discussion on the design of Tomcat multi-layer container

Table of contents Container Hierarchy The process...

Detailed explanation of the flexible use of CSS grid system in projects

Preface CSS grids are usually bundled in various ...

Two methods to implement Mysql remote connection configuration

Two methods to implement Mysql remote connection ...

15 Vim quick reference tables to help you increase your efficiency by N times

I started using Linux for development and enterta...