请各位前辈帮忙看一下。为什么输出的不是:结果是:JavaScript?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>document.getElementById</title>
</head>
<body>
<p id="con">JavaScript</p>
<script type="text/javascript">
var mychar=document.getElementByld("con");
document.write("结果:"+mychar); //输出获取的P标签。
</script>
</body>
</html>