How do I print debug messages in the Google Chrome JavaScript Console?

前端 未结 14 875
清酒与你
清酒与你 2020-11-27 08:54

How do I print debug messages in the Google Chrome JavaScript Console?

Please note that the JavaScript Console is not the same as the JavaScript Debugger; they have

14条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 09:31

    Executing following code from the browser address bar:

    javascript: console.log(2);
    

    successfully prints message to the "JavaScript Console" in Google Chrome.

提交回复
热议问题