Chapter 4 Case Study: childNodes attribute of the javascript Art Museum: An array containing all the child elements of the given element node is returned.
ChildType attribute: The returned array contains all types of nodes.
NodeValue attribute: changes the value of a text node.
FirstChild and lastChild attributes: whenever and wherever you need to access the first element of the childNodes [] array, you can write it as firstChild.
Node. firstChild is equivalent to node. childNodes [0].
Likewise
Node. lastChild is equivalent to node. childNodes [node. childNodes. length-1]
Chapter 5 javascript programming principles and good habits
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