如何在Google Chrome中的JavaScript中查看文档对象的所有属性和方法?
可以在Google Chrome中的JavaScript中查看窗口对象的所有属性和方法。但是它与文档对象没有相同的方式。它仅在控制台中显示HTML代码。
如何在Chrome控制台中查看文档对象的原型?
It is possible to view all the properties and methods of window object in JavaScript in google chrome. But it doesn't work the same way with document object. It only shows the HTML code in console.
How is it possible to view prototype of document object in chrome console?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用console.dir()。
这将显示指定的JavaScript对象的所有属性。
有关更多信息,您可以访问: - https> https:https:// devagenter。 mozilla.org/en-us/docs/web/api/console/dir
you can use console.dir().
This will display all the properties of a specified JavaScript object.
For more information you can visit :- https://developer.mozilla.org/en-US/docs/Web/API/console/dir