<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>
<body>
<!--调整前的代码
<div id="con">
<p>javascript</p>
<div>jQuery</div>
<h5>PHP</h5>
</div>
-->
<div id="con"><p>javascript</p><div>jQuery</div><h5>PHP</h5></div>
<script type="text/javascript">
var x=document.getElementById("con");
document.write("Firstnode name:"+x.firstChild.nodeName+"<br />"+"Firstnode value:"+x.firstChild.nodeValue+"<br />"+"Firstnode type:"+x.firstChild.nodeType+"<br />"+"<br />");
document.write("Lastnode name:"+x.lastChild.nodeName+"<br />"+"Lastnode value:"+x.lastChild.nodeValue+"<br />"+"Lastnode type:"+x.lastChild.nodeType+"<br />"+"<br />");
</script>
</body>
</html>
我也是 网站有问题 以前提交正确的现在提交也都出现了错误
提交同学已经提交成功的代码还是错误 等着网站修复吧