摘要:
在javascript的事件绑定中,我们经常用到的方法是functionaddListener(el,event,fn,bCapture){varisCapture=bCapture?bCapture:false;try{el.addEventListener(event,fn,isCapture);}catch(e){try{el.attachEvent('on'+event,fn);}catch(e){el['on'+event]=fn;}}}function whatIsThis(){ if (this === window) { alert('T 阅读全文