📅  最后修改于: 2022-03-11 15:02:59.040000             🧑  作者: Mango
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);