📌  相关文章
📜  javascript 获取 id 的所有元素 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:06.782000             🧑  作者: Mango

代码示例1
// You can't
// You can only have 1 instance of an id per document
// You need to use classes instead

var x = document.getElementsByClassName("example");