How to assign the return of a promise to a global variable in JavaScript?

后端 未结 0 1339
傲寒
傲寒 2020-12-19 06:34

So... I have a function that returns a promise and I want to assign the value of a global variable to anything that this promise returns. How do I do that?

fu         


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