Is there any way to catch Javascript errors globally across the web application by writing some code in the master page?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- Carriage Return (ASCII chr 13) is missing from tex
- void before promise syntax
- Keeping track of variable instances
You can use the
onerror
event:See JavaScript Exception Handling Techniques