摘要: 在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 阅读全文
posted @ 2011-03-03 11:10 oneroom 阅读(774) 评论(1) 推荐(0) 编辑
让别人快乐是慈悲,让自己快乐是智慧!