📌  相关文章
📜  如何选择一个类,然后使用 javascript 代码示例更改该类的子级

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

代码示例1
//First store your class inside a variable and then select it with query selector
var x = document.querySelectorAll('.location-address');
x[0].innerHTML += '
'; x[1].innerHTML += '
'; x[2].innerHTML += '
';