Mozilla Developerhttps://developer.mozilla.org//Document/getElementByIdDocument:getElementById() 方法 Document:getElementById () 方法. Document 接口的 getElementById() 方法返回一个表示 id 属性与指定字符串相匹配的元素的 Element 对象。. 由于元素的 ID 在指定时必 更多内容请查看https://developer.mozilla.org/zh-CN/docs/Web/API/Document/getElementById