Is there a way to get document and window properties in chrome

雨燕双飞 提交于 2019-12-11 06:26:21

问题


Is there a way to get document and window properties in the chrome developer toolbox?

I don't see it in the element tab of the developer toolbox. This would be really handy when troubleshooting jquery.offset problems

While were at it we might as well discuss this in firefox 4+

Thanks


回答1:


Try typing in the console:

console.dir(window) //just "window" would work too
console.dir(document)



回答2:


You actually can just type in the devtools console (F12 on Windows or Cmd+Alt+ on Mac):

window // logs the window object
document // logs the document object


来源:https://stackoverflow.com/questions/6308955/is-there-a-way-to-get-document-and-window-properties-in-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!