如何查看console.log()的输出? [英] How can I see the output of console.log()?

查看:205
本文介绍了如何查看console.log()的输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码:

<script type = "text/javascript">
 console.log("hello world");
</script>

如何查看 console.log()的输出?

我在Google上进行了搜索,但没有找到解决方案.

I searched on Google but did not find a solution.

推荐答案

您可以打开错误控制台,具体取决于您的浏览器.(例如,在Firefox中为Ctrl + Shift + J,在Chrome中为F12).大多数浏览器的开发人员工具中都隐藏了控制台.

You can open the error console, depending on your browser. (Ctrl+Shift+J in Firefox, or F12 in Chrome, for example). Most browsers have the console hidden in their developer tools.

这篇关于如何查看console.log()的输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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