Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ページのリロード後にJavaScriptコンソールログが自動的にクリアされるようにするための設定、またはハッキング可能なソリューションはありますか?
ログに古いエラーが残っているのを見ると、つまずくことがよくあります。
使用する:
console.clear();
以前のログをすべて消去して新しいログを表示する場合は、JavaScriptファイルの上に配置します。
jQueryを使用する場合は、
$(function(){ console.clear(); });
または試してみてください
window.onload = function(){ setTimeout("console.clear()",3000) }