为什么下面的代码没有显示a.id? 用alert也没反应
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/JavaScript">
a=document.getElementById("he");
document.write(a.id);
</script>
</head>
<body>
<div id="he"></div>
</body>
</html>
交互式爱情
呼唤远方
相关分类