简体   繁体   中英

Clear in Google Chrome Console

When I type clear in console, it gives me g id=clear and then a path. What does it mean?

I am not able to understand the value, so looking for some help:)

Screenshot of developer tool

1个

To clear the console, you can execute clear() (notice the parenthesis after), or even console.clear() .

Basically, as noticed above, you are likely accessing a global element from the DOM. In this case, you should be calling the clear() function or console.clear() function, rather than just entering the variable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM