Javascript - How to work around with “this” inside ES6 class

后端 未结 0 1576
无人及你
无人及你 2021-01-19 04:26

If i have the following approach:

element.addEventListener(\'click\', foo)

const fooList = {
 1: new barClass().function1,
 2: new barClass().function2,
 3:          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题