How to Return the Value of a Promise outside a Class in Javascript

前端 未结 0 1985
野趣味
野趣味 2021-02-04 12:50

I have 2 classes. One that sets up a promise and another one that gets the result of the promise.

Food

export class Food  {
  constructor(initialSettings)          


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