简体   繁体   English

Firefox DevTools中控制台输出的最后一行是什么意思?

[英]What does the last line of console output in Firefox DevTools mean?

While testing a simple JavaScript while loop in the Firefox DevTools' console, I noticed that the last line of the output is different than in other consoles. 在Firefox DevTools的控制台中测试简单的JavaScript while循环时,我注意到输出的最后一行与其他控制台不同。 Is this a bug in those tools? 这是这些工具中的错误吗? Can I change this eg in the settings manually? 我可以手动更改设置吗?

Example: 例:

Firefox DevTools控制台输出

The last line of the output is the value returned from the executed script, as I described in the answer to a similar question . 输出的最后一行是从执行的脚本返回的值,正如我在类似问题答案中所述

This return value is shown in all developer tools: 此返回值显示在所有开发人员工具中:

Firebug 萤火虫

在Firebug中返回评估脚本的值

Firefox DevTools Firefox开发工具

Firefox DevTools中评估脚本的返回值

Chrome DevTools Chrome DevTools

在Chrome DevTools中返回评估脚本的值

Edge DevTools Edge DevTools

Edge DevTools中的评估脚本的返回值

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

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