Method description:
This method is the same as console.log(). From the source code, it directly calls console.log.
grammar:
The code copy is as follows:
console.info([data], [...])
Receive parameters:
Accepts several parameters, and if there is only one parameter, the string form of this parameter is output.
If there are multiple parameters, it is output in a format similar to the C printf() command.
If there are no parameters, just print a newline
example:
The code copy is as follows:
var count = 1234;
console.info('count: %d', count);
Source code:
The code copy is as follows:
Console.prototype.info = Console.prototype.log;