Reflection
by 蘇德宙, 2011-02-05 21:22, 人氣(1516)
instanceof
explore attributes & functions
function obj() {
this.color = "red";
this.flavor = "strawberry";
this.func = function() {};
}
var o = new obj();
for (var i in o)
console.log(o[i]);