猿问
有条件触发的JS 函数怎样获取外部参数
比如说:document.getElementById("a").onmouseout=function( ){...}这样的函数定义怎样从外部获得参数
张扬4371681
浏览 902
回答 1
1回答
stone310
function abc(x,y){ console.log(x+y) } document.getElementById("a").onmouseout=function(){ abc(1,2) }
0
1
0
随时随地看视频
慕课网APP
相关分类
JavaScript
我要回答