📜  javascript .addListener( 设置自定义参数 - Javascript 代码示例

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

代码示例1
someObj.addEventListener('click', some_function(someVar));

var some_function = function(someVar) {
    return function curried_func(e) {
        // do something here
    }
}