function getAllProperties(obj) {
var properties = '';
for (property in obj) {
properties += '\n' + property;
}
return properties;
}
console.log( getAllProperties(MyObject) );
沒有留言:
張貼留言