console.info() method outputs an informational message to the Web Console. In Firefox, a small "i" icon is displayed next to these items in the Web Console's log.
注意: 此特征可用于 Web 工作者 .console.info(obj1 [, obj2, ..., objN]); console.info(msg [, subst1, ..., substN]);
obj1
...
objN
A list of JavaScript objects to output. The string representations of each of these objects are appended together in the order listed and output.
msg
A JavaScript string containing zero or more substitution strings.
subst1
...
substN
msg
. This gives you additional control over the format of the output.
见
把文本输出到控制台
在文档编制的
console
了解细节。
| 规范 | 状态 | 注释 |
|---|---|---|
|
控制台 API
The definition of 'console.info()' in that specification. |
实时标准 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
info
|
Chrome Yes | Edge 12 | Firefox 4 | IE 8 | Opera Yes |
Safari
Yes
|
WebView Android Yes | Chrome Android Yes | Firefox Android 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android Yes |
| Substitution strings | Chrome Yes |
Edge
12
|
Firefox 9 |
IE
10
|
Opera ? | Safari ? | WebView Android Yes | Chrome Android Yes | Firefox Android 9 | Opera Android ? | Safari iOS ? | Samsung Internet Android Yes |
完整支持
兼容性未知
见实现注意事项。