I had an OnError() event in some code that was setting the image source to a default image path if it wasn't found. Of course, if the default image path wasn't found it would trigger the error handler...
For people who have a similar problem but not the same, I guess the cause of this is most likely to be either an unterminated loop, an event handler that triggers itself or something similar that throws the javascript engine into a spin.

本文讨论了一个JavaScript编程中常见的问题:当设置图片源路径时触发了OnError事件,导致默认路径无法正常工作并陷入无限循环的问题。文章分析了可能的原因,包括未终止的循环或自我触发的事件处理器等。
1212

被折叠的 条评论
为什么被折叠?



