在代码的最前方添加这段代码就可以了
console.log = function(){ }
代码示例:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>
<script>
//想看控制台打印的时候注销这行代码就可以了
console.log = function(){
}
console.log('lc,我想带你去看晴空万里')
console.log('lc,我喜欢大海')
console.log('lc,余生有你')
</script>