有条件触发的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) }
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript