var t = document.getElementById('DivId').childNodes; for(i=0; i<t.length; i++) alert(t[i].id);. 但是它只会得到Div的子孙,而不是孙子。 谢谢!
確定! 回上一頁