How to use await in post/get requests using fetch?

前端 未结 0 1163
耶瑟儿~
耶瑟儿~ 2021-01-05 16:59

I have the following code which works but I don\'t like to use

await new Promise(resolve => setTimeout(resolve, 10000));

I would like to c

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