W3SchoolsLearn how to use the getElementById () method to return an element with a specified id in HTML DOM. See examples, syntax, parameters, return value, browser support and related methods.更多内容请查看https://www.w3schools.com/jsref/met_document_getelementbyid.asp
javascriptcn.comhttps://www.javascriptcn.com › jsref › met-documentHTML DOM getElementById() 方法-JavaScript中文网 getElementById() 方法是 Document 对象的一个方法,用于通过元素的 id 属性值获取文档中的一个特定元素。 每个文档中的元素都可以通过一个唯一的 id 属性来标识,因此可以通过这个 id 更多内容请查看https://www.javascriptcn.com/jsref/met-document-getelementbyid.html