Promise returns Promise.reject how to handle it?

后端 未结 0 1102
南笙
南笙 2020-11-28 15:17

How would you catch the returned Promise.reject() in the following code snippet?

I am aware that it is bad practice and the code should be -->

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