简体   繁体   English

我的 clear() 命令在 Google Chrome JavaScript 控制台中不起作用

[英]My clear() command not working in Google Chrome JavaScript console

Every time I run the clear() command to clear space in my JavaScript console on Chrome, I run into the following error: VM229:1 Uncaught TypeError: clear is not a function at:1:1 I'm aware that there are other ways to clear the console, but I'm wondering at what I'm doing wrong or if I have a weird setting enabled.每次我在 Chrome 上运行 clear() 命令清除 JavaScript 控制台中的空间时,都会遇到以下错误: VM229:1 Uncaught TypeError: clear is not a function at:1:1 我知道还有其他清除控制台的方法,但我想知道我做错了什么,或者我是否启用了奇怪的设置。

Type console.clear() into the console.在控制台中输入console.clear()

The command will fail with an appropriate error if you enabled the option "preserve log".如果您启用了“保留日志”选项,该命令将失败并显示相应的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 清除 Google Chrome 中的 javascript 控制台 - clear javascript console in Google Chrome 为什么我的 Javascript 不起作用? 但适用于 Chrome 控制台 - Why is my Javascript not working? but works with Chrome console Chrome-JavaScript控制台无法正常工作 - Chrome - javascript console not working Javascript 在 chrome 控制台中工作,但在 Google 跟踪代码管理器 (GTM) 上不工作 - Javascript is working in the chrome console but its not working on Google Tag Manager (GTM) 当我试图确保我的 javascript 代码正常工作时,我在 Google Chrome 上的控制台上收到此错误 - I get this error on my console on Google Chrome when I am trying to make sure that my javascript code is working 我的Google Chrome JavaScript控制台中的“未捕获的TypeError:未定义不是函数” - “Uncaught TypeError: undefined is not a function” in my Google Chrome JavaScript console 保存后我的jQuery代码无法在谷歌浏览器控制台中运行吗? - My jquery code is working in google chrome console not after saving it? Chrome Javascript控制台停止工作 - Chrome Javascript Console Stopped Working JavaScript无法在Google Chrome浏览器中使用 - JavaScript not working in Google Chrome javascript在Google chrome上不起作用 - javascript are not working on Google chrome
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM