try catch not catching error if issue parsing JSON file Angular

前端 未结 0 1278
再見小時候
再見小時候 2021-02-01 21:49

I have a function that reads a JSON file and I am trying to show an alert message if there is an issue parsing the file. But it looks like the code never goes into the catch. Th

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