简体   繁体   English

如何使用控制台中的代码关闭浏览器控制台

[英]How do I close the browser console with code in the console

I need to close the browser console like if I hit f12 but in code. 我需要关闭浏览器控制台,就像我按f12键一样,但是在代码中。 The same as how in a comand prompt you would type exit 与在命令提示符下键入exit的方式相同

No browser that I know of allows for the real console to be opened and closed via code. 据我所知,没有浏览器允许通过代码打开和关闭真正的控制台。

That said, Firebug Light may offer the features that you need. 也就是说, Firebug Light可能会提供您所需的功能。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM