Content directory:
- Dom
- 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