ie的开发者工具(Console Debugging API )

本文详细介绍了浏览器控制台中常用的命令及其用途,如assert、clear、dir等,这些命令可以帮助开发者更有效地进行调试和测试工作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

TopicDescription

assert

Sends a message to the console if the expression provided evaluates to false. The message text color is red and it is prefaced by an error icon.

clear

Clears messages from the console.

dir

Prints the properties of  an object to the console.

error

Sends an error "message" to the console. The message text color is red and it is prefaced by an error icon.

info

Sends an informational "message" to the console. The message is prefaced by an information  icon.

log

Sends a log  "message" to the console. The message is prefaced by the string "LOG".

msIsIndependentlyComposed

Retrieves a Boolean value indicating whether the element is independently composed.

profile

Starts recording profile information under the optional title provided. This command is equivalent to clicking the Start profiling button on the F12 developer tools Profile tab.

profileEnd

Stops recording profile information under the last report title.

warn

Sends a warning  message to the console. The message is prefaced by the warning icon.

http://msdn.microsoft.com/zh-CN/library/ie/hh772183.aspx
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值