Javascript 单击 Google Chrome 中的链接时停止清除控制台日志
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7124164/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Stop the console log clearing when you click a link in Google Chrome
提问by HM2K
Referred to as the "JavaScript console", when you click on a link, the log is cleared.
称为“JavaScript 控制台”,当您单击链接时,日志将被清除。
Is there a way to stop this log from being cleared when you click on a link?
当您单击链接时,有没有办法阻止清除此日志?
The problem is that an event triggered onClick is returning an error which makes it harder to diagnose because the error is only displayed for a short time before being cleared.
问题是触发 onClick 的事件返回了一个错误,这使得诊断变得更加困难,因为错误在被清除之前只会显示很短的时间。
Thanks.
谢谢。