求大手找出我的问题所在,基本上跟老师的没什么区别啊,但就是没反应,下面是我的代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div>
<input type="button" id="btn" value="确定">
</div>
<script type="text/javascript">
function showmes(){
alert("妈的智障!");
}
var eventUtil{
addHandler:function(element,type,handler){
if(element.addEventLisenter){
element.addEventLisenter(type,handeler,false);
}else if(element.attachEvent){
element.attachEvent('on'+type,handler);
}else{
element['on'+type]=handler;
}
}
removeHandler:function(element,type,handeler){
if(element.removeEventLisenter){
element.removeEventLisenter(type,handeler,false);
}else if(element.detachEvent){
element.detachEvent('on'+type,handler);
}else{
element['on'+type]=null;
}
}
}
eventUtil.addHandler(btn,'click',showmes);
</script>
</body>
</html>