W3SchoolHTML DOM Element id Property The id property sets or returns the value of an element's id attribute. Note. An id should be unique within a page. See Also. The getElementById () Method. CSS Syntax. CSS #id 标记:Document Get Element By Id InnerhtmlElement Id ExampleElement.Id Javascript更多内容请查看https://www.w3schools.com/jsref/prop_html_id.asp
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