Details about how to print images and arrays in js console. log, jsconsole. log
This article describes how to use the js console. log Print Object and array. We will share this with you for your reference. The details are as follows:
What is console. log is actually a function that prints js arrays and objects, just like print_r and var_dump of php. There is nothing to say about the console. log function. This blog tells you how to use this function. Before talking about this function, I would like to use alert to view the js output at most, but alert can only play string or int
One-click test file test.html
<Html xmlns = "http://www.w3.org/1999/xhtml">
Ii. View js Images Using chrome development tools
Console chrome
Currently, chrome Developer Tools and firebug are half-to-half when I use them. The chrome developer tool also has a function, which is not available in firebug.
The console can run js. If the page is iframe, firebug can only run on the parent level, and chrome can select the page to execute. If
Chrome iframe console
Iii. View js images in firebug
Firebug console