JavaScript must be enabled in order for you to view this page. However, it seems JavaScript is either disabled or not supported by your browser. To view this page, enable JavaScript by changing your browser options, then Try again! .

Firebug Command Line API

by solo L2008-03-09T10:09:00Z,tag:Web Design

Firebug是在Firefox中进行Web开发的利器。IE中尚缺少这样一款工具,也许这种情况会在IE8中有所改善。

Firebug Command Line API是为JavaScript做日志用的。目前包括15个函数:

  • console.log(object[, object, ...])
  • console.debug(object[, object, ...])
  • console.info(object[, object, ...])
  • console.warn(object[, object, ...])
  • console.error(object[, object, ...])
  • console.assert(expression[, object, ...])
  • console.dir(object)
  • console.dirxml(node)
  • console.trace()
  • console.group(object[, object, ...])
  • console.groupEnd()
  • console.time(name)
  • console.timeEnd(name)
  • console.profile([title])
  • console.profileEnd()
  • console.count([title])

如下是我的使用过程:

Console API

补充:

使用console.profile时得到的Javascript Runtime Profiler

Javascript Runtime Profiler
Copyright © SoloL.org 冀ICP备06003230号