为什么得不到id为head标签的子标签th?
下面代码直接复制可运行。
求解
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script >
function println(){
let Nodes=$("#head").childNodes;
console.log(Nodes);
}
</script>
<title>Title</title>
</head>
<body>
<table>
<thead>
<tr id="head">
<th>
<input type="checkbox"/>
</th>
<th>name</th>
<th>author</th>
<th>store</th>
<th>money</th>
<th>date</th>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
<button onclick="println()">打印</button>
</body>
</html>