Mozilla Developerhttps://developer.mozilla.org//Document/getElementByIdDocument:getElementById() 方法 Document 接口的 getElementById() 方法返回一个表示 id 属性与指定字符串相匹配的元素的 Element 对象。 由于元素的 ID 在指定时必须是独一无二的,因此这是快速访问特 aiapr.cn更多内容请查看https://developer.mozilla.org/zh-CN/docs/Web/API/Document/getElementById