<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1 id="h1">
明天休息
</h1>
</body>
<script>
var C = document.getElementById("h1").childNodes;
alert(C.nodeValue);
</script>
</html>
慕粉3541299