Firebug未显示所有对象属性 [英] Firebug not displaying all object properties

查看:112
本文介绍了Firebug未显示所有对象属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用console.log(一个具有表单数据的对象)跟踪一些数据,并且因为数据量大于FB将在控制台中显示的数据量,所以在显示的字符串后面附加了more ...

I'm tracking some data using console.log, an object with form data, and because the amount of data is greater than what FB will display in the console I get a "more..." appended to the string displayed in the console:

 Object { elementName="lessonPlanName", elementType="text", more...}

但是当我点击链接时,我收到消息说没有要显示的对象的属性。

But when I click on the link I get message saying "There are no properties to show for this object."

如何在控制台中查看对象的所有项目?

How can I view all the items of the object in the console?

感谢

推荐答案

听起来像是Firebug的bug。尝试关闭选项卡并重新打开它,它有时会工作,但通常你必须完全关闭Firefox。

Sounds like a Firebug bug—happens sometimes. Try closing the tab and reopening it, it sometimes works, but usually you have to close Firefox completely.

此外,你可以做的不仅仅是console.log。 console.dir(obj) console.dirxml(ob)一个用于输出对象键/值对,一个用于输出xml。

Additionally you can do a lot more than just console.log. console.dir(obj) and console.dirxml(ob) for example. One is made for outputting object key/value pairs and one is made for outputting xml.

请参阅完整文档: http://getfirebug.com /wiki/index.php/Console_API

这篇关于Firebug未显示所有对象属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆