开发者

How to inspect a jQuery object in Firebug like IE's debugger?

开发者 https://www.devze.com 2023-01-29 18:08 出处:网络
in IE I can view the structure of a jQuery object in an expandable 开发者_开发问答treeview. How do I get something similarin Firefox\'s Firebug?

in IE I can view the structure of a jQuery object in an expandable 开发者_开发问答treeview. How do I get something similar in Firefox's Firebug?

Addition: The top dark box shows the object in IE. The bottom shows the same object in Firebug (pretty empty!).

How to inspect a jQuery object in Firebug like IE's debugger?


Look at the "DOM" tab and in there will be listed a bunch of variables and objects and others. Find your jQuery object and you can navigate its content.

I hope this helps.

Hrsto


Enter your variable or expression into the watch window or use the DOM tab as others have mentioned.

How to inspect a jQuery object in Firebug like IE's debugger?


Try the triangle in the watch tab, it will have options for what to show. Be sure the show user properties and show user functions are enabled...

0

精彩评论

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