See also:
• console.log
• console.debug
• console.info
• console.warn
console.info
This method is a synonym for console.log.
See also:
• console.log
• console.debug
• console.error
• console.warn
console.log
This method logs data to the browser console. The input can be a list of strings or objects. If a
string is supplied, it may contain formatting controls that can be used to format output. Values
following the string in the parameters will be used as positional replacements for the codes. The
following format specifiers are supported:
Format Specifier Description
%s
The parameter is a string.
%d or %i
The parameter is an integer.
%f
The parameters is a floating point.
%o
The parameter is expanded as a DOM node.
%O
The parameter is expanded as a JavaScript object.
%c
The parameter is expanded as CSS styling for the output.
See also:
• console.info
• console.debug
• console.error
• console.warn
console.warn
This method is a synonym for console.log but should be used to log "warning" messages.
See also:
• console.log
• console.info
• console.error
• console.debug
Page 135
Comentários a estes Manuais