In addition to Console. log (), more Javascript Debugging commands are provided,
The Console object provides access to the browser Console (for example, the Firefox Web Console ). Different browsers work in different ways, but here we will introduce
Console. Log (object [, object,...])Output a message on the console. If multiple parameters exist, the output parameters are separated by spaces.
The first parameter can be a string that contains the formatted placeholder output, for example:
1. What is console. log ()?In addition to some older browsers, most browsers now have built-in debugging functions. Even if there is no debugging function, you can install plug-ins to supplement it. For example, in earlier versions of Firefox, there
You can use the F12 console command to receive error messages from Windows Internet Explorer 9 andCodeSend back your own message without interrupting the execution flow.
You can use the F12 tool console view inProgramRun the script statement
The console provides two main methods for developers to test web pages and applications:
Diagnose log information by using console APIs provided by the console, such as console. Log () and console. Profile ().
The instant response command window can
The console is the first and most important panel of firebug. It is mainly used to display various types of information generated during webpage loading.
1. Command for displaying information
Firebug has a built-in console object, which provides
Chrome's developer tools have been powerful to the point of no friends, especially the console with rich functions and friendly interfaces. when used properly, they can have the following functions:
Higher "Force Grid" faster "Development
Chrome's developer tools have been powerful to the point of no friends, especially the console with rich functions and friendly interfaces. when used properly, they can have the following functions:
Higher "Force Grid" faster "Development
A chance, open Baidu when pressed the F12, and then see the console inside the output of Baidu recruitment ads, feeling pretty handsome, and then have this blog.
Since you can do this in the console output information, then debug JS after the time
Details of the Chrome console consoleLet's take a look at how to open the browser console before you go into detail.To open Google Developer tools, there are three ways
Ctrl+shift+i
F12
In the Web page, right click on "Review
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.