admin管理员组文章数量:1328001
Is there any setting in Coda, or hackable solution, to get the JavaScript Console log to automatically clear itself after page reload?
I often stumble when I see old errors in the log, that doesn't still exist.
Is there any setting in Coda, or hackable solution, to get the JavaScript Console log to automatically clear itself after page reload?
I often stumble when I see old errors in the log, that doesn't still exist.
Share Improve this question edited Jul 9, 2020 at 10:50 braX 11.8k5 gold badges22 silver badges37 bronze badges asked Apr 30, 2009 at 9:00 HenrikHenrik 2,5914 gold badges26 silver badges34 bronze badges2 Answers
Reset to default 6Use:
console.clear();
If you want to erase all the previous logs and to show the fresh ones - put it on top of your JavaScript file.
If you use jQuery try
$(function(){ console.clear(); });
Or try
window.onload = function(){ setTimeout("console.clear()",3000) }
本文标签: loggingCoda Automatically Clear JavaScript Console on page reloadStack Overflow
版权声明:本文标题:logging - Coda: Automatically Clear JavaScript Console on page reload? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742249784a2440533.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论