[removed] Overriding alert()

后端 未结 12 2292
忘了有多久
忘了有多久 2020-11-22 03:17

Has anyone got any experience with overriding the alert() function in JavaScript?

  • Which browsers support this?
  • Which browser-versions sup
12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 04:03

    A quick hack that I do to find where the alerts are coming from, is to go to console and then enter this

    function alert(message) { 
      console.info(message);
      debugger;
    } 
    

提交回复
热议问题