Javascript:清除控制台[Firefox] [英] Javascript: Clear Console [Firefox]

查看:138
本文介绍了Javascript:清除控制台[Firefox]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法清除Firefox的控制台?



在Chrome中,我可以使用...



< pre $ console.clear()

适用于Safari或Opera)

然而,我一直无法找到Firefox的解决方案。

这种类型的API还没有可用?

是否有一个解决方法,不需要???
$ b $ $ p $ console.log( \\\
\\\
\\\
\\\
\\\
\\\
\\\
\\\
\\\
\\\
\\\
\\\
\\\
\\\
\\\
\\\
\ n\\\
\\\
\\\
\\\
\\\
\\\
\\\
\\\
);

非常感谢您的帮助。

解决方案

在firefox中,您可以输入 clear()。这是很好的做法。



这是一个指向Javascript控制台命令的开发者网站的链接: http://msdn.microsoft.com/en-us/library/windows/apps/hh696634.aspx


Is there a way to clear the console in Firefox?

In Chrome I can use...

console.clear()

(Not sure if it works for Safari or Opera though)

However I haven't been able to find a solution for Firefox.
Is this type of API not yet available?
Is there a workaround that doesn't require???

console.log("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");

Any help is greatly appreciated.

解决方案

In firefox you can just input clear(). It well be done.

Here's a link to the Developer's website for Javascript console commands: http://msdn.microsoft.com/en-us/library/windows/apps/hh696634.aspx

这篇关于Javascript:清除控制台[Firefox]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆