JavaScript jQuery-6 operation of the JQuery class array

Source: Internet
Author: User

I. Operation of the JQuery class array

Introduction to class arrays

-Multiple DOM objects encapsulated by the JQuery object

-Class: Refers to a similar

-Has its own unique method of operation


Operation of an array of classes

-Length Property

-Each (FN) iterates through an array of classes and FN is used to process DOM objects. In FN, this represents the DOM object that is being traversed. The DOM object to which the FN function is being traversed. The FN function can add a parameter I to represent the subscript of the DOM object being traversed (starting at 0)

-eq (Index): Remove the DOM object with the subscript equal to index

-Get (): Returns an array consisting of a DOM object

-Index (OBJ): Returns the subscript of a DOM or jquery object in an array of classes

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7E/72/wKioL1cAsgPQ9MQnAAAjtFo6Pm8115.png "title=" Web.png "alt=" Wkiol1casgpq9mqnaaajtfo6pm8115.png "/>650" this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/ 7e/76/wkiom1casysyqgffaaa7zexncz8613.png "title=" Web.png "alt=" Wkiom1casysyqgffaaa7zexncz8613.png "/>


Summary: This chapter mainly describes the operation of the JQuery class array


This article from the "Flying Ants" blog, declined to reprint!

JavaScript jQuery-6 operation of the JQuery class array

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.