devtools 控制台_使用DevTools控制台和控制台API

devtools 控制台Every browser exposes a console that lets you interact with the Web Platform APIs and also gives you an inside look at the code by printing messages that are generated by your JavaScript c...
摘要由CSDN通过智能技术生成

devtools 控制台

Every browser exposes a console that lets you interact with the Web Platform APIs and also gives you an inside look at the code by printing messages that are generated by your JavaScript code running in the page.

每种浏览器都提供一个控制台,该控制台使您可以与Web平台API进行交互,还可以通过打印由页面中运行的JavaScript代码生成的消息来使您深入了解代码。

The browser console

控制台概述 (Overview of the console)

The console toolbar is simple. There’s a button to clear the console messages, something you can also do by clicking cmd-K in macOS, or ctrl-K on Windows, a second button that activates a filtering sidebar, that lets you filter by text, or by type of message, for example error, warning, info, log, or debug messages.

控制台工具栏很简单。 有一个按钮可以清除控制台消息,您也可以通过以下操作来完成此操作:单击macOS中的cmd-K或Windows中的ctrl-K ,第二个按钮可以激活过滤侧边栏,使您可以按文本或消息类型进行过滤,例如错误,警告,信息,日志或调试消息。

You can also choose to hide network-generated messages, and just focus on the JavaScript log messages.

您还可以选择隐藏网络生成的消息,而只关注JavaScript日志消息。

Filtering console messages

The console is not just a place where you can see messages, but also the best way to interact with JavaScript code, and many times the DOM. Or, just get

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值