<script>
function zEvent(){
this.type=null;
this.target=null;
this.relatedTarget=null;
this.cancelable=false;
this.timeStamp=null;
this.returnValue=true;
};
zEvent.prototype.initEvent=function($a,$b){
this.type=$a;
this.cancelable=$b;
this.timeStamp=(new Date()).getTime();
};
zEvent.prototype.preventDefault=function(){alert();
if(this.cancelable){this.returnValue=false;}
};
function zDragDropEvent(){
zEvent.call(this);//①
};
zDragDropEvent.prototype=new zEvent();//②var dz= new zDragDropEvent();
//dz.timeStamp="ss";
//dz.type="sss";
alert(dz.timeStamp);
dz.preventDefault()
alert(zDragDropEvent.prototype.timeStamp);
</script>语句①和语句②是不是有些重复,可以将①去掉