The context of this in a callback function

后端 未结 0 985
执笔经年
执笔经年 2021-01-07 00:09

I am dealing with an API where It was a method on the Instance which returns a callback function

   myPlayer.onPlay(function() {
            console.log(this)         


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