Why is Chrome's onerror event for the img element only fired once?

后端 未结 5 2017
时光说笑
时光说笑 2020-12-17 21:44

Why is Chrome is only calling the onerror event for the img element one time when all other browsers (IE7,8,9, FF, Opera, and Safari) all call it repeatedly?

Is ther

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 22:10

    As answered by Etdashou on this question : https://stackoverflow.com/a/9891041/1090274, setting this.onerror=null; worked for me.

提交回复
热议问题