jquery Finishing Notes (i)

Source: Internet
Author: User

This: Indicates that the current context object is an HTML object that can invoke properties owned by an HTML object, method
$ (this), which represents the context object that is a jquery context object that can invoke the methods and property values of jquery.

The Each:jquery traversal function executes the function for each matching element. You can traverse one-dimensional arrays, multidimensional arrays, DOM, JSON, and so on.

The find () method gets the descendants of each element in the current element collection, filtered by a selector, JQuery object, or element. (not normal DOM objects are objects that jquery encapsulates later)

jquery Dom element method dom contains attribute method

$ ("#div"). each (function () {})



The $ indicator represents jquery. The function is to find and select elements in the HTML document according to the parameters in the (), one function is the substitution of getElementById, but () can not only be an ID, but also a variety of selectors.

Console.log Browser background output related information terminal log indicates a method output log. Ability to output variables, functions, arrays, objects, etc.

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.