Details about how to print images and arrays in js console. log, jsconsole. log

Source: Internet
Author: User
Tags print object chrome developer chrome developer tools

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

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.