How to throw an error in subsequent code after using a Promise?

前端 未结 0 487
清酒与你
清酒与你 2020-11-30 16:46

When using a Promise in JavaScript it seems like all subsequent code is wrapped in a try..catch... How do I "exit" from this try...catch? See code example:

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