jquery Objects and Dom objects

Source: Internet
Author: User

jquery Objects and Dom objects

1 JQuery objects are not the same as DOM objects

1.1 jquery is an array object, and the DOM object is a separate DOM element

1.2 how jquery objects and DOM objects are handled

DOM: The DOM object obtained by the DOM model is processed first, and then the text and color are processed through the innerHTML and style properties

JQuery: First, the $p object is processed by the $ method, and then the HTML and CSS are called, and the results are the same as standard JavaScript processing.

2 $p is a class array object that contains information about DOM objects and encapsulates a number of methods of operation

3 jquery objects and D OM objects can manipulate the DOM

4 jquery objects converted into DOM objects

Use the array subscript to read the DOM object in jquery, with the Get () method that comes with jquery

The 5 Get () method provides direct access to the relevant DOM nodes in the jquery object

6 The index of the array is starting from 0, that is, the first element subscript is 0

7 DOM objects converted to jquery objects

Pass the DOM object to the $ (DOM) function, then jquery wraps the DOM object into a new jquery object

8 $ (parameter) is a versatile method that produces different effects by passing different parameters



jquery Objects and Dom objects

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.