如何全局处理JavaScript异常? [英] How to Handle JavaScript Exceptions Globally ?
本文介绍了如何全局处理JavaScript异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我正在一个项目中,其中将应用exceptoin处理机制.
大家都知道,如果我们想在应用程序级别处理异常,则可以在Global.asax中全局处理异常.
我希望javascript中具有相同的功能来处理javascript异常,以像javascript中的Global.asax一样处理它.如何实现此功能?
请指南
hi I am working on a project where exceptoin handling mechnims is to be applied.
You all know that we can handle exception globally in Global.asax if we want to handl it at application level.
I want same functionality in javascript to handle javascript exceptions to handle it like Global.asax globally in javascript. How can I achieve this functionality?
Please guide
推荐答案
访问此处:
http://blog.dreamlabsolutions. com/post/2008/10/01/ASPnet-global-exception-handling-and-custom-error-page.aspx [ http://stackoverflow.com/questions/3193859/asp-net-catch- referenced-script-file-exceptions [ ^ ]
http://www.dailycoding.com/Posts/javascript_exception_handling_techniques.aspx [
Visit here:
http://blog.dreamlabsolutions.com/post/2008/10/01/ASPnet-global-exception-handling-and-custom-error-page.aspx[^]
http://stackoverflow.com/questions/3193859/asp-net-catch-referenced-script-file-exceptions[^]
http://www.dailycoding.com/Posts/javascript_exception_handling_techniques.aspx[^]
Thanks,
Ambesha
这篇关于如何全局处理JavaScript异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文