The difference between jquery and JavaScript

Source: Internet
Author: User
Tags jquery library

jquery is nearing the end, plus a summary blog, so it's perfect.

Say jquery, write less, do more, core ideas. Everyone said, "with jquery, drinking tea every day," This is standing on the shoulders of giants. Start with the B/S project. At that time, NIU teacher with us to do "beef Brisket news Release System" when it has been mentioned, then we are also elephant, to the present or the original knowledge to compare, to summarize it.

First of all, the difference between jquery and JavaScript, compared to the efficiency, this is not bad. The first thing to understand is that jquery is the most popular JavaScript library.

The disadvantage of JavaScript is that the results of processing in different browsers may differ. Security issues, JavaScript may be exploited by hackers because they are running on the client, and the results may be different in different browsers.

The biggest benefit of jquery is that a small amount of code is doing more. Look at an example.

JavaScript code:

document.getElementById (' ElementID '). Value  
jquery Code:

$ (' #elementid '). Val ();  

jquery's syntax is much simpler than JavaScript. With jquery, it's easy to navigate through documents, select elements, handle events, and add effects lights, while also allowing developers to customize plugins.

Benefits of jquery:

jquery eliminates JavaScript cross-platform compatibility issues, jquery is easier to use than others, and jquery has a huge library of functions, which is my favorite.

There are two sides to everything, and the disadvantage of jquery, not the JavaScript language of the original, is difficult to understand. It's hard to start everything. The project needs to include the jquery library file, which can conflict if there are multiple versions of the jquery library.

There will be some corresponding jquery technical summary in the latter chapter. Cond.....

The difference between jquery and JavaScript

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.