close
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<ul>
<li>aa</li>
<li>bb</li>
<li>cc</li>
<li>dd</li>
<li>ee</li>
</ul>
<script type="text/javascript">
var value=document.getElementsByTagName('li')[2].childNodes[0].nodeValue;
document.write(value);
</script>
</body>
</html>
全站熱搜
留言列表