[removed] does not work

前端 未结 3 750
一向
一向 2020-12-10 08:05

I have some tricky AJAX code on a form, and sometimes it will fail (don\'t ask why, I can\'t get around it). When this happens, I need to trap the error, reset a hidden fie

3条回答
  •  悲&欢浪女
    2020-12-10 08:54

    try/catch also introduces an additional error object that only has the scope of the catch. In applications where performance matters, this is not a good idea.

提交回复
热议问题