日期:2014-05-16 浏览次数:20381 次
<script type="text/javascript"> function add(a,b,c){ alert(a+":"+b+":"+c) } function bind(fn,args){ return function(){ return fn.apply(this,args); } } window.onload=function(){ var o=document.getElementById("aa"); var arg1=1,arg2=2,arg3=3; var b=bind(add,[arg1,arg2,arg3]); window.attachEvent?document.attachEvent("onclick",b):window.addEventListener("click",b,false); } </script>