/**
* Created by W.J.Chang on 2014/5/23.
*/
d = 1;
var a = {a:'b',c:'d'};
// 枚举Keys
for(var i in a) {
console.log(i);
}
console.log("----");
Object.prototype.d = 'e';
for(var i in a ){
console.log(i);
}
console.log("----");
for(var i in a ){
if(a.hasOwnProperty(i)) {
console.log(i);
}
}
console.log("----");
console.log(Object.keys(a));