JQuery Learning 1: Understanding and understanding the jQuery Library

Source: Internet
Author: User
Tags element groups

JQuery is simply an excellent javescript class library. JQuery allows developers to easily process DOM, events, animation effects, and provide Ajax interaction for websites. JQuery strives to change the mindset style of web developers when creating rich pages, that is, the behavior and structure proposed by jQuery are separated.

 

JQuery focuses on getting and operating elements from html pages, describing element groups through the features or positions of elements in documents, and learning about CSS friends, the selector is very useful.

 

 

 

JQuery uses the excellent selector function in CSS.

 

$ ("Tr: nth-child (1)"); this selector selects the first row of each table.

 

$ ("A [href $ = pdf]"); select a link to the pdf file.

 

$ ("Body> div: has (a)"); this selector selects the div that contains links as the direct subnode.

 

From this point of view, if you have an understanding of the CSS selector, this function of jQuery is easier to understand and master.

 

 

 

The $ () function can be regarded as the alias of the jQuery () function, and $ () can be replaced with jQuery ().

 

JQuery provides extensions and does not support independent functions. In my understanding, only functions with specific functions can be written on the basis of jQuery, but not in the jQuery class library.

 

 

 

JQuery can be compatible with other excellent javascript libraries.

Author blog: http://www.cnblogs.com/yangzhijia/

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.