是否可以冲洗控制台(立即打印)? [英] Is it possible to flush the console (make it print immediately)?
问题描述
我使用Firefox + Firebug进行一些Javascripting。我试图用 console.log
登录的文本不会立即出现在Firebug的控制台中。好像它在某个地方的缓冲区中堆积起来,然后以块的形式刷新到控制台。我有一个函数可以进行一些 log
调用。有时我只得到第一行,有时候 - 没有。但是,当我刷新页面时,我会看到整行。
I use Firefox + Firebug for some Javascripting. The text I'm trying to log with console.log
does not immediately appear in Firebug's console. It seems like it piles up in a buffer somewhere, and then gets flushed to console in chunks. I have a function that makes a few log
calls. Sometimes I get just the first line, sometimes - nothing. I do, however, see the whole bunch of lines when I refresh the page.
我可以手动刷新控制台日志吗?
Can I flush the console log manually?
推荐答案
简短的回答是否定的。没有同花顺。你可以清除控制台
The short answer is no. There is no flush. You could clear the console
console.clear();
但我认为这不是你想要的。这很可能来自代码。如果我们能看到它,我可以通过更好的反馈来修改我的答案。
But I don't think that's what you want. This is most likely from the code. If we can see it, I can revise my answer with better feedback.
如果要在控制台下查看所有可用方法,请在命令行中执行此操作:
If you want to see all the available methods under console, execute this in the command line:
for(var i in console) {
console.log(i);
}
或查看控制台API的wiki页面。
这篇关于是否可以冲洗控制台(立即打印)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!