//事件参数e在IE8的浏览器中是不存在,此时用window.event来代替//兼容性写法:function f1(e){ var event = e||window.event; console.log(event.target);}