<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>
并没有看到你的eventshiv是什么意思