1 var TEST = {
2      msg: 'test',
3      ping: function() {
4          return this.msg
5     }.bind(this    /* this -> window */)
6 }

 

相关文章:

  • 2022-01-02
  • 2021-07-19
猜你喜欢
  • 2021-05-15
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案