In-depth introduction to JQuery (I) Analysis of JQuery

Source: Internet
Author: User
1. an overview of a new technology and new thinking is because it facilitates people's needs and solves some of the current problems. It also has advantages and disadvantages while generating, depending on how we apply it. We have already introduced JavaScript... syntaxHighlighter. all (); 1. an overview of a new technology and new thinking is because it facilitates people's needs and solves some of the current problems. It also has advantages and disadvantages while generating, depending on how we apply it. We have already introduced the JavaScript scripting language, which helps Web developers to improve the interaction capability and dynamic effect of browsers to a large extent. However, with the rapid development of the Internet, it cannot meet users' urgent needs for page display forms and user experience. Therefore, some cool people further encapsulate and expand JavaScript and establish a powerful JavaScript code library, the name is JQuery. Initially, it was an open-source project created by an American. it gradually became popular with more and more people. Its main purpose was to use less code, implement More functions (Write Less, Do More ). JQuery library files must be used before use. The JQuery library file can be downloaded from here: www.jquery.com 2. main functions. control DOM and CSS B. process page events c. A large number of plug-ins apply d. perfect Combination of Ajax 3. style dollar sign $ event operation chain writing when writing an event of an element on the page, you can use chain writing to make the code more concise. 4. basic syntax [javascript] v // JavaScript Document // first writing method $ (document ). ready (function () {// code segment}); // The second method $ (function () {// code segment}); the two methods are consistent, so what do they mean? Since JQuery is an extension of JavaScript, there will be corresponding code in JavaScript. See the following code: [javascript] window. onload = function () {// code segment}; difference: the execution time is different. Jquery is executed after the Jquery library is loaded, while JavaScript is executed after all the pages are loaded. Obviously, the former has higher execution efficiency. Different execution quantities can be executed multiple times, but Jquery outputs results each time, while JavaScript only outputs results once. 5. Check the following code for the resource access management DOM and CSS instances to bind a click event to the button. when clicked, the system automatically obtains the text box and single-choice button values and displays them in a DIV tag. [Html] Control DOM

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.