Global variable 'res' is undefined at the module level

前端 未结 0 2576
天涯浪人
天涯浪人 2021-02-14 06:49

How can I set a global value in a function that is a class function? I know I can use self.res in constructor, but just wondering why it is wrong to do the followin

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