简体   繁体   中英

Chrome Developer Tools console - inspect JavaScript object

In the old version of Chrome (not sure which version, I know it was quite some time ago), I could type the following into a console using the Chrome Developer Tools, and it would give me all associated properties of the newly created object:

document.createElement('a');

Now, when I do the same, I'm given very little back, and I can barely do anything with the returned item in the console, whereas I would just like to inspect it.

铬开发工具

How do I view all the properties of this element, etc. as with the old version of Chrome - so I can inspect all properties and their values?

Many thanks.

var a = document.createElement('a');
console.dir(a)

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