Access window.console after overwrite

前端 未结 4 1548
醉话见心
醉话见心 2020-12-10 14:15

Is it possible to somehow access to console.log after it gets overwritten?

window.console = { log: function (msg) { alert(msg); }, /* etc... */ };

4条回答
  •  情书的邮戳
    2020-12-10 14:45

    It's not possible. Except if whoever has overwritten it has included some code to undo it.

提交回复
热议问题