IE8不能用event.type啊,提示【 'type' 为空或不是对象】。兄弟们怎么解决的????
<body> <button id="btn">按钮</button> <a id="gobaidu" href="http://www.baidu.com">链接</a> <script type="text/javascript"> var btn = document.getElementById("btn"); var gobaidu = document.getElementById("gobaidu"); function f0() { alert("你好!"); } function f1(event) { alert(event.type); alert(event.target); alert(event.target.nodeName); } eventshiv.addHandler(btn, 'click', f0); eventshiv.addHandler(btn, 'click', f1); </script> </body> IE提示【 'type' 为空或不是对象】