<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">
function getElement(){
this.element = document.getElementById("test");
this.name = "huanzai";
this.cha = function (){
alert(this.element.style.display);
}
}
var get = new getElement();
get.cha();
</script></head><body>
<div id="test" class="test" style="display:block" >
  <p>我是拖拽示例DIV。</p>
  <p>可以试验一下效果。</p>
</div>  
</body>
</html>运行代码是报错的,this.element is null,为什么会是null?想不明白