document.getElementById获取不到值的几种原因分析 2011年9月23日 · 然而,根据你提供的引用内容,报错信息显示document.getElementById is not a function,这意味着document对象中不存在getElementById方法。 这个错误可能是因为微信 更多内容请查看https://blog.csdn.net/lhooouuu/article/details/6803755
w3schools.comHTML 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() method is one of the most common methods in the HTML DOM.更多内容请查看https://www.w3schools.com/jsref/met_document_getelementbyid.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 更多内容请查看https://developer.mozilla.org/docs/Web/API/Document/getElementById