mdn.org.cnhttps://mdn.org.cn//docs/Web/API/Document/getElementById文档:getElementById() 方法 getElementById() 方法是 Document 接口的方法,它返回一个 Element 对象,表示与指定字符串匹配的 id 属性的元素。 由于元素 ID 在指定时必须是唯一的,因此它们是快速 更多内容请查看https://mdn.org.cn/en-US/docs/Web/API/Document/getElementById
Mozilla DeveloperDocument: getElementById() method The getElementById() method of the Document interface returns an Element object representing the element whose id property matches the specified string. Since element 标记:Application Programming InterfacesDocument Getelementbyid Value更多内容请查看https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById
W3SchoolHTML DOM Document getElementById() Method The getElementById() method returns an element with a specified value. The getElementById() method returns null if the element does not exist. The getElementById() 标记:Document Getelementbyid ValueGetelementbyid Innerhtml更多内容请查看https://www.w3schools.com/jsref/met_document_getelementbyid.asp
新手教程https://www.begtut.com/jsref/met_document_getelementbyidHTML DOM getElementById() 方法 | 新手教程getElementById() 方法可返回对拥有指定 ID 的第一个对象的引用。 HTML DOM 定义了多种查找元素的方法,除了 getElementById() 之外,还有 getElementsByName() 和 标记:GetelementbyidHTML更多内容请查看https://www.begtut.com/jsref/met_document_getelementbyid.html