Menu

Clear log information in the console

This article was last updated 379 days ago, please note whether the content is still available

js add the following code:

console.log=function(){};

The GebiLaoli Theme can be added the following code in: Theme Settings→Basic Settings→Top Additional Code:

<script>console.log=function(){};</script>


Clear log information in the console.pdf
Download this article as a PDF document and save it
Export PDF

Helpful?

Comments(2)

剑影孤狼
剑影孤狼

2025-10-10 14:10:45 From 山西省

这篇文章展示了如何在JavaScript中禁用console.log功能。
剑影无痕
剑影无痕

2025-10-10 14:08:02 From 安徽省池州市

这段代码禁用了JavaScript控制台输出。

Post comment

Support Live Chat
TOP