jk,越兔等热心的朋友有个问题请教一下
<input type=button value=test2 id="aaa">
<SCRIPT srccccc="css/layout.js" type=text/javascript>
document.getElementById("aaa").onmousedown = function(e){foo(e ||window.event,this)}
function foo(a,obj)
{
alert(a.clientX);
alert(obj.value)
}
</SCRIPT>
obj.onclick=function(){}
这个外层function括号里面从来没有用过加过参数,有加参数的例子吗?
是用来做什么的。
再就是火狐浏览器下function(e){foo(e||window.event,this)}加了参数,为什么要这样用?谢谢