当一个嵌套的div与同名的div嵌套在一起,具有相同的id时,我如何通过id引用嵌套的div
Sorry, "eg" is already in English and does not require translation. It stands for "for example".
<div id="obj1">
<div id="Meta">
<meta></meta>
</div>
</div>
<div id="obj2">
<div id="Meta">
<meta></meta>
</div>
</div>
我想获得meta的innerHTML
document.getElementById( obj1 ).getElementById( Meta ).getElementsByTagName( meta )
不起作用 (bù qǐ zuò yòng)