为什么下面 console.log(mytarget) 输出的不是200?
<div class="box1" id="box1">
<span class="share">justshare</span>
</div>
window.onload = function(){
var box1 = document.getElementById('box1');
box1.onmouseover = go(200);
} function go(mytarget){
return function(mytarget){
console.log(mytarget); //输出的却是 mouseover clientX=43, clientY=100
}
}
添加回答
举报
0/150
提交
取消