...

View Full Version : How to show a object method and attribute?



EdwardKing
12-18-2007, 06:26 AM
I call a object,it owns many methods and attributes. For example,a object named obj,it owns following method:
getId(),getName(),....

I want to know if there is a way which to show its all methods and attributes? If could,how to do it with javascript?

Anyidea will be appreciated!

Trinithis
12-18-2007, 07:30 AM
for(var x in obj)
alert("Property:" + x + "\nValue:" + obj[x]);



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum