1.getElementsByName() 方法
https://www.w3school.com.cn/jsref/met_doc_getelementsbyname.asphtml
2.getElementById() 方法
https://www.w3school.com.cn/jsref/met_doc_getelementbyid.aspide
3.document.getElementByclassName()方法
https://blog.csdn.net/boat_sea/article/details/80142875.net
4.querySelector() 方法
document.querySelector("h2, h3").style.backgroundColor = "red";
https://www.runoob.com/jsref/met-document-queryselector.htmlhtm
document.querySelector和document.getElementByClassName的區別
https://blog.csdn.net/u013718730/article/details/90474272blog
詳解document.getElementById 和 document.querySelector的區別
https://blog.csdn.net/m0_37793545/article/details/79193254element
document.getElementById/Name/TagName返回值的小區別
https://www.jianshu.com/p/151c5a283c3eget