{event.preventDefault();}else{event.returnValue=false;}} stopPropagation:function(event){if(event.stopPropagation){event.stoppropagation();}else{event.cancelBabble=true;}} getType=function(event){return event.type; } getelement:function(event){return event.target||event.srcElement; }
2017-10-30
ie eve =event.target||event.srcElemtnt; function (event){event.stoppropagation()} var event=event||window.wvent; canceBubble true false return value false getevent:function(event){return event?event:window.event}, preventDefualt:function(event){if(event.preventDefault)
2017-10-30
eventuti.addhander(box,"click",showMEs);封装的 box.addeventlistener("click,newmes,false);么封装的费ie box.attacheventlistener(box,newMes); ie
2017-10-29
var event={addhander:function(element,type,hander){if(elemetn.addEventListener{elenent.addeventlistenter(type,hander,false; else if(element.attachEvent){element.attachEvent("on"+type,hander);else{elemtnet['on'+type=hander;]}}})
}}
}}
2017-10-29
ie要加on btn3.attachEvent('onclick',showmes); detachEvent("onclick",showMES);
2017-10-29
<input type="button" value="anniu" id="new3"> var btn =document.getElementById("btn");
btn.addeventListener() btn1.onclick=null btn.removerEventListener("click",show,false);
btn.addeventListener() btn1.onclick=null btn.removerEventListener("click",show,false);
2017-10-29