[英]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.