Is there a better and cleaner way to handle different exceptions in Javascript?

后端 未结 0 1221
时光取名叫无心
时光取名叫无心 2020-12-12 19:42

I am trying to differentiate between the different errors by taking different actions depending on the error detected. Here is a code example:

const myFunc =          


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