Differences between jQuery and javascript

Source: Internet
Author: User

Differences between jQuery and javascript

JQuery is coming to an end. Adding a summative blog is perfect.

JQuery has fewer writes, more operations, and core concepts. Everyone said, "With jQuery, drinking tea and water every day", this is standing on the shoulders of giants. Let's start with the B/S project. At that time, when instructor Niu took us together to do the "Niuke news publishing system", he mentioned that at that time we were also blind people, and now we still need to compare it with the previous knowledge, make a summary.

First, let's talk about the difference between jQuery and javascript, and compare the efficiency, which is not bad. First, you must understand that jQuery is the most popular javascript library.

The disadvantage of javascript is that the processing results may be different in different browsers. Security issues. javascript may be exploited by hackers because it runs on the client, and the processing results may be different in different browsers.

The biggest benefit of jQuery is that a small amount of code is used to do more things. Let's look at an example.

Javascript code:

JQuery code:


Compared with javascript, jQuery syntax is simpler. With jQuery, you can easily browse documents, select elements, process events, add efficiency lights, and allow developers to customize plug-ins.

Advantages of jQuery:

JQuery Eliminates cross-platform javascript compatibility issues. jQuery is easier to use than others. jQuery has a huge function library, which is my favorite.

Everything has two sides. jQuery's disadvantage is that it is not the original javascript language, and it may be difficult to understand. It's hard to start with everything. The project must contain the jQuery library file. If there are multiple versions of the jQuery library, a conflict will occur.

There will be some jQuery technical summaries later. To be continued .....

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.