HTML部分:<p id="testp" class="testp" title="it is a test">it is a test</p>JavaScript部分:var testp = document.getElementById("testp").childNodes;alert(testp.length);
添加回答
举报
0/150
提交
取消