Home >Web Front-end >JS Tutorial >javascript method to use console.log when debugging firebug_javascript skills
console.log();
When you use the console.log() function, the following firebug must be opened, otherwise this function will be invalid and affect the normal program when running with firefox. If it is opened with IE, it will Something will go wrong.
The first parameter can be a string containing formatted placeholder output, for example:
console.log("The %s jumped over %d tall buildings" , animal, count);
Format string type
%s string
%d, integer
%i (numeric type is not supported yet)
%f float Point type (number type is not supported yet)
%o link object
console.log() usage