使用JavaScript清除Firefox中的控制台 [英] Clear the console in Firefox using JavaScript

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

问题描述

有没有办法在Firefox中清除控制台?

Is there a way to clear the console in Firefox?

在Chrome中我可以使用...

In Chrome I can use...

console.clear()

(不确定是否可以适用于Safari或Opera虽然)

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

但是我找不到Firefox的解决方案。这种类型的API尚不可用吗?是否有不需要的解决方法?

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");


推荐答案

在firefox中你可以输入明确()。很好。

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

这是开发人员网站上Javascript控制台命令的链接: http://msdn.microsoft.com/en-us/library/windows/apps/hh696634.aspx

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天全站免登陆