开发者

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

开发者 https://www.devze.com 2023-03-12 05:53 出处:网络
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 h开发者_如何学Goandy when troub

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 h开发者_如何学Goandy when troubleshooting jquery.offset problems

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

Thanks


Try typing in the console:

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


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
0

精彩评论

暂无评论...
验证码 换一张
取 消