为什么下面的代码没有显示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>
添加回答
举报
0/150
提交
取消