1. acquired by the tag name
2 obtained by the id
3. acquired by the class name
4. acquired by the name attribute
Note: Only the id is not unique suffix should be possible to obtain only one of the other three is not a
if the suffix is the time to get all the elements in that name by using the variable should be added [3] and the corresponding suffix in brackets after the variable numbers.
set html tag text
innerHtml will modify the start and end tags Everything between the tags, covering subelements
innerText text changes only
by modifying js html style
for loop to set the content of a set of labels li
js Get Settings page elements
Guess you like
Origin blog.csdn.net/weixin_46146313/article/details/104109878
Recommended
Ranking