JavaScript global event mechanism

前端 未结 10 2201
无人及你
无人及你 2020-11-22 14:39

I would like to catch every undefined function error thrown. Is there a global error handling facility in JavaScript? The use case is catching function calls from flash that

10条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 15:19

    Does this help you:

    
    

    I'm not sure how it handles Flash errors though...

    Update: it doesn't work in Opera, but I'm hacking Dragonfly right now to see what it gets. Suggestion about hacking Dragonfly came from this question:

    Mimic Window. onerror in Opera using javascript

提交回复
热议问题