⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 companion js api.txt

📁 IE下JS调试工个
💻 TXT
字号:
:: Console API ::

Companion.JS adds the useful Firebug "console" feature to Internet Explorer. 

You can use "console.log(), console.debug(), ..." the same way you used it with Firebug. 

不能生效的命令
Not all the functions are implemented so far on the version 0.2. The following functions are not yet implemented : 
  console.dir;
  console.trace;
  console.group;
  console.groupEnd;
  console.profile;
  console.profileEnd;

console.log(object[, object, ...])
Logs the message on the console, all arguments joined by space. The first argument may be a string with a "printf"-like format. 

Recognized patterns are : 
  %s String 
  %d , %i Integer (numeric formatting is not yet supported) 
  %f Floating point number (numeric formatting is not yet supported) 
  %o Object hyperlink 

  console.debug(object[, object, ...])
  console.info(object[, object, ...])
  console.warn(object[, object, ...])
  console.error(object[, object, ...])
Log messages with custom icon depending on the function used. 

 console.assert(expression[, object, ...])
Test if the expression is true. If so, the info is logged in the console. 

 console.dirxml(node)
Log the HTML source if the requested node. 

 console.time(name)
 console.timeEnd(name)
Stops a timer created by a call to console.time(name) and writes the time elapsed. 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -