eventshiv.addHandler(btn, 'click', f0); eventshiv.addHandler(btn, 'click', f1); 为什么我在HTML文件里写上面代码,非IE先执行f0,而IE先执行f1?????
<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("你好1"); } function f1(event) { alert("你好2"); // alert(event.type); // alert(event.target); // alert(event.target.nodeName); } eventshiv.addHandler(btn, 'click', f0); eventshiv.addHandler(btn, 'click', f1); </script> </body>