<!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>
添加回答
举报
0/150
提交
取消