Mozilla Developerhttps://developer.mozilla.org/en-US/docs/Web/API/Document: getElementsByClassName() method Learn how to use the getElementsByClassName method to select elements by class name in JavaScript. See syntax, parameters, return value, examples, and browser 更多内容请查看https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName
W3SchoolHTML DOM Document getElementsByClassName() Method2 天之前 · Learn how to use the getElementsByClassName () method to return a collection of elements with a specified class name (s). See examples, syntax, parameters, return value, 标记:Getelementsbyclassname ExampleGetelementsbyclassname Mdnbtxun.com更多内容请查看https://www.w3schools.com/jsref/met_document_getelementsbyclassname.asp
mdn.org.cnhttps://mdn.org.cn//API/Element/getElementsByClassName元素:getElementsByClassName() 方法 The Element method getElementsByClassName() 返回一个实时 HTMLCollection,其中包含每个具有指定类名或类名的后代元素。 该方法 标记:GetelementsbyclassnameWeb API更多内容请查看https://mdn.org.cn/en-US/docs/Web/API/Element/getElementsByClassName