可惜是英文的… 觉得用法好高端啊, 以前学 JS 比较乱, 都没接触到这层, Orz http://killdream.github.com/blog/2011/10/understanding-javascript-oop/
Object.defineProperty(mikhail, 'name', { value: 'Mikhail'
, writable: true
, configurable: true
, enumerable: true })
Object.defineProperty(mikhail, 'age', { value: 19
, writable: true
, configurable: true
, enumerable: true })
Object.defineProperty(mikhail, 'gender', { value: 'Male'
, writable: true
, configurable: true
, enumerable: true })