📜  myFunction with param on addEventListner - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:59.040000             🧑  作者: Mango

代码示例1
var someVar = 32;//Sample value 
var someEle = document.getElementById("someID");//Sample Element
someEle.addEventListener("click", function(){
   myFunction(someVar);// <- There use your function with param in brackets
}, false);