如何将不同的参数传递给 lambda 函数

问题描述 投票:0回答:0

我想知道如何将一些参数传递给 labmda 函数

this.func

我希望能够传递包括事件在内的三个参数,并使用

console.log

显示其内容

代码

this.map.un('pointermove',this.func)

private func = (e)=>{
    console.log(e)
}
angular lambda openlayers
© www.soinside.com 2019 - 2024. All rights reserved.