Python devops Development (16)----dom&&jquery

Source: Internet
Author: User
Tags tag name

Content directory:

    • Dom
      • Find
      • Operation
      • Event
    • Jquery
      • Find
      • Screening
      • Operation
      • Event
      • Extended
Dom

The Document Object model (Doc object Model,dom) is a programming interface for HTML and XML documents. It provides a structured representation of the document, which can change the content and presentation of the document. What we are most concerned about is that Dom links Web pages with scripts and other programming languages. Dom belongs to the browser, not the core content of the specification in the JavaScript language specifications.

Find Element Direct Lookup
document.getElementById             gets a label based on the ID document.getelementsbyname          Gets a collection of tags based on the Name property Document.getelementsbyclassname gets a collection of tags based on the     class attribute document.getElementsByTagName       gets a collection of tags based on the tag name
Indirect lookup
ParentNode          //parent node childnodes//          All child nodes FirstChild          //first child node LastChild           //Last child node nextsibling         // Next sibling node previoussibling     //Previous sibling node parentelement           //parent node tag element children//                All child tags firstelementchild       // First child tag element lastelementchild        //Last child tag element nextelementtsibling     //Next sibling tag element previouselementsibling  // Previous sibling tag element

The top half of this is node contains elements and content, and the lower part element contains only elements

Python devops Development (16)----dom&&jquery

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.