Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the differences between jquery and js

Shulou Source: shulou.com Published: 2022-06-01 07:35:13 09月10日 Update

This article mainly introduces the difference between jquery and js what the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe you read the difference between jquery and js which article will have a harvest, let's take a look at it.

JQuery is a fast and concise JavaScript framework, which is another excellent JavaScript code base (framework) released by John Resig in January 2006 after Prototype. JQuery is designed to be "write Less,Do More", which advocates writing less code and doing more. It encapsulates the common functional code of JavaScript, provides a simple JavaScript design pattern, and optimizes HTML document operation, event handling, animation design and Ajax interaction.

1. Essential difference

JQuery is a library of JavaScript functions. JQuery is a library written based on the JavaScript language, which is essentially JavaScript.

2. The difference of code writing

JQuery greatly simplifies JavaScript programming, jQuery code is much lighter than heavy JavaScript, jquery is designed to use less code, beautiful to complete more functions.

3. Differences in usage

(1) use JavaScript and jQuery to load DOM:

JavaScript executes only once, while jQuery executes multiple times.

(2) use JavaScript and jQuery to obtain the class method:

JavaScript does not have a default method to get class, while JQuery can call class's method through $('.className').

This is the end of the article on "what's the difference between jquery and js". Thank you for reading! I believe you all have a certain understanding of the knowledge of "what's the difference between jquery and js". If you want to learn more, you are welcome to follow the industry information channel.

Tags: Code method design more knowledge difference content function that is framework article excellent beautiful simple concise light event thing value usage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Microsoft Shulou Tech Info MariaDB Huawei